News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Large exe file in windows

Started by mercury, May 31, 2005, 07:17:01 PM

Previous topic - Next topic

mercury

Hi!
I've just started programming under windows. First thing I noticed is, that a simple console Hello World app in windows is 450kByte large. I must have some setting of the compiler wrong (GCC), since the same program is only 4k large in Linux. Any ideas anyone?

George

rickg22

MinGW suffers from a horrible linking problem: It can't get rid of dead code as well as the original GCC.

Also, you can try stripping the exe. Exes usually have this debug info attached to them. And you might like downloading UPX, reduces exes and DLL's size around 50%.

Yury Benesh (aka ybx)