User forums > General (but related to Code::Blocks)

Large exe file in windows

(1/1)

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):
use OpenWatcom C++ :)

Navigation

[0] Message Index

Go to full version