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 is the use of vtable?
What is pointer -to-members in C++? Give their syntax?
Do we have to use initialization list in spite of the assignment in constructors?
What is a container class?
What is the use of endl in c++ give an example?
What is difference between initialization and assignment?
12 Answers HCL, HP, Infosys,
What is the full form of stl in c++?
Briefly describe a B+ tree. What is bulk loading in it?
What is the purpose of ios::basefield in the following statement?
int *p = NULL; printf("%1d",p) ; what will be the output of this above code?
Is java easier than c++?
What is the default width for ouputting a long integer using the insertion operator?