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 the extraction and insertion operators in c++?

0 Answers  


What is flush c++?

0 Answers  


what are the types of Member Functions?

0 Answers  


Why are pointers not used in c++?

0 Answers  


What is the basic difference between C and C++?

0 Answers   NIIT,


What is lambda expression c++?

0 Answers  


Explain "passing by value", "passing by pointer" and "passing by reference" ?

5 Answers  


What is size of empty class object

5 Answers   CA,


What is the difference between #import and #include in c++?

0 Answers  


Write about the role of c++ in the tradeoff of safety vs. Usability?

0 Answers  


What is the use of endl in c++?

0 Answers  


Should a constructor be public or private?

0 Answers  


Categories