|
From: Brecht S. <br...@sa...> - 2009-09-18 18:04:46
|
>>> I have compiled several C libraries with gcc (stripped) and vc++ (release >>> mode) and I have noted that the code generated by vc++ is always lower >>> (for one library, it 90KB with gcc and 70KB with vc++) >>> >> Look for >> "Why is ... My executable so large?" >> here: >> http://mingw.org/wiki/FAQ >> > > * debug symbols : none and, as I said, I stripped the lib > * C++ stuff : no, as I said, it's a C library > > UPX is not an option to compare dll size with gcc or vc++ > > other ideas ? > > Have you used optimization switches like -O3 or -Os? This is what the command line help (gcc -v --help) says about them: -O<number> Set optimization level to <number> -Os Optimize for space rather than speed I usually use these to build releases together with -s (strip). Also I recently switched to MinGW 4.4.0 and the binaries are somewhat smaller than in version 3. I hope this helps you, Brecht |