Re: [Dev-C++] GCC 3.2 (MinGW 2.0) Compiled File Sizes
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel K. O. <dan...@ya...> - 2003-07-12 20:19:55
|
Marc Heiligers wrote:
> So does anyone know of a way to reduce the file sizes generated by GCC 3.2?
Try:
Switches: -s -Os
And:
strip -s <exename>
upx -9 <exename>
("strip.exe" should be on your mingw bin dir, and UPX you can find on
SourceForge)
I have them both on my Tools menu.
The C++ hello world now is 71.5 KB :)
g++ is not toooo bloated, I compiled some big (well... not toooo big,
but bigger than a hello world... 15~20K lines :P ) projetcts, and the
size (with -O2 switch, and no strip/upx) is usually less than 100 KB
bigger than the binaries compiled with VC++ (dunno what version). It
seems acceptable to me. :)
Daniel K. O.
|