Author Topic: Large exe file in windows  (Read 6715 times)

mercury

  • Guest
Large exe file in windows
« 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

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Large exe file in windows
« Reply #1 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%.

Offline Yury Benesh (aka ybx)

  • Multiple posting newcomer
  • *
  • Posts: 16
    • http://ybx.narod.ru
Large exe file in windows
« Reply #2 on: May 31, 2005, 09:05:28 pm »
use OpenWatcom C++ :)