Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: mercury on May 31, 2005, 07:17:01 pm

Title: Large exe file in windows
Post by: mercury on May 31, 2005, 07:17:01 pm
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
Title: Large exe file in windows
Post by: rickg22 on May 31, 2005, 07:30:45 pm
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%.
Title: Large exe file in windows
Post by: Yury Benesh (aka ybx) on May 31, 2005, 09:05:28 pm
use OpenWatcom C++ :)