How to reduce a final size of executable?

Answers were Sorted based on User's Feedback



How to reduce a final size of executable?..

Answer / lylez00

Don't include unnecessary header files.
Don't link with unneccesary object files.

Is This Answer Correct ?    16 Yes 2 No

How to reduce a final size of executable?..

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

How to reduce a final size of executable?..

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

Post New Answer

More C++ General Interview Questions

Memory is not a constraint. In a single iteration(NOTE: you can't go back), how will you find out the 10th last node/item in a linked list.

16 Answers   BNB, FDS, Goldman Sachs, Nagarro,


an integer constant must have atleast one a) character b) digit c) decimal point

0 Answers  


what is polymorphism?

14 Answers   Accenture,


Where do I find the current c or c++ standard documents?

0 Answers  


What are the effects after calling the delete this operator ?

0 Answers  






What are the differences between a struct in C and in C++?

8 Answers   Amazon, Wipro,


What is lambda expression c++?

0 Answers  


How do you remove an element from a set in c++?

0 Answers  


What are inline functions?

2 Answers   Fidelity, Verizon,


Differentiate between an external iterator and an internal iterator?

0 Answers  


What is the hardest coding language to learn?

0 Answers  


What do you mean by delegate? Can a user retain delegates?

0 Answers  


Categories