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

What are raw sockets, where they are efficient?

2 Answers   Symphony,


What is encapsulation in c++?

0 Answers  


What is stoi in c++?

0 Answers  


When should I use unitbuf flag?

0 Answers  


How can a '::' operator be used as unary operator?

1 Answers  






What is the difference between interpreters and compilers?

0 Answers  


How size of a class can be calulated?

2 Answers  


Is facebook written in c++?

0 Answers  


Do you know what is overriding?

0 Answers  


Which software is used for c++ programming?

0 Answers  


implement stack using stack.h headerfile functions

1 Answers   Exilant, GMG, Subex, University,


What are formatting flags in ios class?

0 Answers  


Categories