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: <sol...@ya...> - 2003-07-13 15:53:01
|
-O2 builds smaller executables than -O3 and -O4. N.B. - If you want to debug, then you have to remove -s option, since -s means strip symbols, which are needed there for debuging. Yeah, you know that, I simply warn here.. OROSZI Balázs wrote: > Damien X wrote: > >> Try adding -s to the commands when calling the compiler. The older >> version of Dev-C++ did that by default, making the size of your .exe >> files small. > > > And also you might try the -O3 or -O4 flag. Optimization also tends to > make the exe file smaller. > If you are still not satisfied, head on to: > http://upx.sf.net > ,the Ultimate Packer for eXecutables homepage. It does it's job very > well, even better than commercial exe packers. > Copy upx.exe into your path somewhere (so you can use it anywhere), > then use "upx -9 <filename>" for best compression. > > Your program, that was 416 KB, after stripping (-s) and upx-ing, was > reduced to 73 KB. > > -- > Greetings, > Balázs > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps1 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |