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 pointer in c++ with example?
What is string in c++ programming?
What is private inheritance?
How the programmer of a class should decide whether to declare member function or a friend function?
What is the rule of three?
if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3
There is a array of 99 cells and we have to enter 1-100 elements in it , no two elements would repeat , so the is one no. missing because 99 cells and 1-100 nos. so we had to implement a function to find that missing no.
throw Can constructors exceptions?
Is c++ a low level language?
Do you know the problem with overriding functions?
What is the difference in size of this two clasees? Class A { int a; char c; float f; } Class B { float f; char c; int a; }
What is binary search in c++?