the new DevC++ beta 8
i have just installed the new beta of devc++ and it increases the size of my final exe dramatically.
with the 4.01 version and whatever mingw compiler that came with it the size of my exe was only 7k and now it is 94k. this is a ridiculuosly large increase in size that i would very much like to get rid of. i have the compiler options set the same on both and above all, i have the debug info option set off, which i know would increase the size.
has anyone else experienced similar things as this?
thanks
The size increase is caused by gcc. The 3.x versions make sometimes big exe files, but it optimizes better. Just remember to strip debugging info and if it''s still too big, use UPX.
BTW, sometimes (I''m not sure is this bug or what), the GCC just ignores the -s switch in the command line when compiling under Dev-C++, so the debugging symbols get in the EXE anyway, so in this case, you have to use the ''strip'' command line utility to strip the debugging data.
BTW, sometimes (I''m not sure is this bug or what), the GCC just ignores the -s switch in the command line when compiling under Dev-C++, so the debugging symbols get in the EXE anyway, so in this case, you have to use the ''strip'' command line utility to strip the debugging data.
thanks, that sounds like it is the problem. i tried compiling with debugging code on and i didnt notice a difference.
how would i use the strip command? is it a compiler command?
how would i use the strip command? is it a compiler command?
To use strip, just go to the directory where your EXE is and type:
STRIP exename.exe
Integrated debugger sucks, but GDB is works nicely after you learn how to use it.
STRIP exename.exe
Integrated debugger sucks, but GDB is works nicely after you learn how to use it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement