> Date: Tue, 02 Jul 2019 23:09:07 +1000 > From: David Wall <dc_wall****@adsl*****> > > I was trying to check the archives to see if this particular problem had been previously reported > but keep getting a 522 error (have tried multiple times today with same result. What is this 522 error? is it related to invoking strip.exe, and if it is, how? I'm confused about this aspect of your description. > I only use mingw/msys to generate a compiler & runtime for GnuCOBOL (part of Gnu). > > The problem I am having is that there is a 'strip.exe' command at the end which is supposed to > eliminate a lot of the unneeded stuff generated by gcc. > > Out of 300 programs (.exe .dll & .a) sent thru strip.exe - only 10 ever get changed in size > amounting to a size saving of about 1% on the whole lot. > > Is this normal or is it standard. If the compilations use the -s switch and/or don't use the -g switch, then yes, this could be normal. The lack of those switches means that debugging symbols are not written into the executables, and -s causes the linker to strip the executable as it is produced. Btw, never say "strip SOMETHING.dll", always use the --strip-unneeded switch when stripping a DLL. Otherwise, you will strip the symbols the dynamic linker needs to load the DLL at run time. Only *.exe files can be stripped without any command-line options to strip.exe.