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 v-ptr?
How do you define/declare constants in c++?
What is setf in c++?
What is the difference between shallow copy and deep copy?
Is there any function that can skip certain number of characters present in the input stream?
Differentiate between a template class and class template in c++?
What is an adaptor class in c++?
Is c++ fully object oriented?
What are the extraction and insertion operators in c++? Explain with examples.
Why is the function main() special?
How do you print a string on the printer?
Which software is best for coding?