How to reduce a final size of executable?
Answers were Sorted based on User's Feedback
Answer / lylez00
Don't include unnecessary header files.
Don't link with unneccesary object files.
Is This Answer Correct ? | 16 Yes | 2 No |
Answer / kriba
Try to avoid Debugging symbols which will be normally
avoided in the Release build of the application.
Try to use Explicit linking of libraries instead of
implicit linking which may also help you in versioning of
your application.
In VC shared MFC application is a classical example of
runtime bonding.
Is This Answer Correct ? | 9 Yes | 2 No |
Answer / kuvaibhav
In addition to all of above, you can use 'strip' utility in
*nix to remove symbols from objects. It is usually done
before shipping executables to customers.
Is This Answer Correct ? | 2 Yes | 0 No |
What are the extraction and insertion operators in c++?
What is flush c++?
what are the types of Member Functions?
Why are pointers not used in c++?
What is the basic difference between C and C++?
What is lambda expression c++?
Explain "passing by value", "passing by pointer" and "passing by reference" ?
What is size of empty class object
What is the difference between #import and #include in c++?
Write about the role of c++ in the tradeoff of safety vs. Usability?
What is the use of endl in c++?
Should a constructor be public or private?