
Originally Posted by
Sprayz
yes I disabled debugging information
O RLY? Then what's this crap?

A program of this sort should take no more than ~4KB at most. Indeed, you've exceeded that 100-fold.
I see. Quite an inefficient compiler. MS C/C++ 12.x is a lot better IMHO.
Once you can get your compiler to produce a 1KB "Hello world!" messagebox, further techniques for size minimisation include NOT generating all the controls dynamically but using dialog box template instead, using the Win32 API in lieu of C file functions, and aligning the output PE with following options (in case of M$ linker):
Code:
/align:4096 /filealign:512 /merge:.rdata=.text /section:.text,EWR /stub:{path to custom 64-byte stub} /subsystem:windows /machine:ix86 /entry:main
See the "Universal Network Terminal" I posted in another thread for example of doing this sort of optimisation.