Advertisement

how to reduce exe size

Started by January 28, 2003 09:37 PM
4 comments, last by ctoa 22 years ago
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?
Build - Set Active Configuration - Win32 Release
Advertisement
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
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.
also, if you''re using vc6.0, you should get rid of libraries that you don''t need.

My Homepage
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
Don''t link your library in the static format....
Japanese man say "save much space my friend"

I am a fish...... I am out of the water .... Damn
I am a fish...... I am out of the water .... Damn :(

This topic is closed to new replies.

Advertisement