Archived

This topic is now archived and is closed to further replies.

ctoa

how to reduce exe size

Recommended Posts

ctoa    122
Hi, this is more toward programming/compiler question... I''m using msvc++ 6.0. when I create an exe and I include GL library my program will be at least around 200kb in size. Even for a very short program. But I''ve seen other people''s exe less than 100kb and sometimes less than 50kb. What should I do to reduce the size? I know there''s compiler setting to make but how?

Share this post


Link to post
Share on other sites
niyaw    158
besides that:
- optimize for size, turn all optimizations on, including linker optimizations
- use /opt:nowin98
- link to crt dynamically
- don''t use crt startup code
- don''t rewrite functions that are already supplied by windows

Share this post


Link to post
Share on other sites