bo*@coolgroups.com wrote:
Does anyone know how to reduce the size of an executable that Dev-c++
creates?
Thanks.
Dev-cpp uses mingw by default to produce executables, and
you probably created a standard C++ project witch is by default at
least 145 kb. A standard C project with is at least 15 kb long.
Why this? Because C++ is very complicated internally and must be
generated code to support all those operations that you normally use to
read/write to buffers, files etc..
This is not a bug but a feature.
If you try to reduce the size follow these steps:
1a) The dangerous way: cut manually or with a hex editor the debug info
generated by linker..this will reduce 30-40 kb
1b) Then you can pack it more by selecting an option in the ide(or
command line)
2) The second is to use a packer like: UPX, witch is one of the best
and you may gain around 60% reducing.
There are other ways but these are the most common!
I hope it helped!