Archived

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

how to reduce exe size

This topic is 5430 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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