Size of the compiled program
Hi.
I started reading NeHe''s tuts a few days ago, and downloaded the code for VC++ 6.0 of tut 05.
The precompiled EXE in the zip was very small, but when I compile the same code, it''s much bigger.
What is the cause of this.?
Best regards
Warrior
You are probably compiling this in Debug Mode, you should set up MSVC to compile it in Release mode.
mostly its the evil DEBUG mode, switch to release and hope its getting smaller and smaller ...
T2k
T2k
you can also get rid of most of the default librariies that MSVC links to your project that you don''t always need.
My Homepage
Some shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
My Homepage
Some shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
quote:
Original post by Julio
you can also get rid of most of the default librariies that MSVC links to your project that you don''t always need.
Technically, that would only improve the speed of the build process. Objects that aren''t referenced aren''t linked into the executable, so they have no impact on the executable''s size.
I am observing more and more posts related to exe and dll sizes..
Why is the size so concerning??
Generally speaking, a dll or exe represents only a tiny fraction (< 1%) of the overall mem usage in a typical 3D application.. no?
www.cppnow.com
Why is the size so concerning??
Generally speaking, a dll or exe represents only a tiny fraction (< 1%) of the overall mem usage in a typical 3D application.. no?
www.cppnow.com
quote:
Original post by superdeveloper
I am observing more and more posts related to exe and dll sizes..
Why is the size so concerning??
Generally speaking, a dll or exe represents only a tiny fraction (< 1%) of the overall mem usage in a typical 3D application.. no?
www.cppnow.com
I have to agree with you. There seems to be a misconception that bigexe = slowexe. The size of the executable should not generally be of concern and does not necessarily indicate slow code. Exe size should be the last thing you look at. (Although, if you have, say a 30MB executable, you may want to ask yourself why.)
Thanks for the quick reply everyone.
This helped me reduse the size considerably.
I must agree, there are numerous other things taking up much more memory that the exe and dll''s, so the size really doesn''t matter... ;-D
However I wanted to know this because I thought I might be doing something wrong. Good to hear I on the right track.
-Warrior
This helped me reduse the size considerably.
I must agree, there are numerous other things taking up much more memory that the exe and dll''s, so the size really doesn''t matter... ;-D
However I wanted to know this because I thought I might be doing something wrong. Good to hear I on the right track.
-Warrior
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement