how to reduce exe size
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?
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
- 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
Use UPX (http://upx.sourceforge.net)
You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement