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 |
Differentiate between a template class and class template?
what is C++ objects?
What is the use of endl in c++ give an example?
What does it mean to declare a destructor as static?
How can you create a virtual copy constructor?
Is c++ primer good for beginners?
the first character in the variable name must be an a) special symbol b) number c) alphabet
How do I tokenize a string in c++?
What are proxy objects in c++?
How do you invoke a base member function from a derived class in which you have not overridden that function?
Differentiate between declaration and definition in C++?
What is the use of cmath in c++?