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 is the use of lambda in c++?

0 Answers  


without if else statement can be written ah

0 Answers  


why all c++ program must have default constructor?

6 Answers   IBM,


Problem 6: Area of a trapezoid can be calculated by the following formula: A=(b1 b2)×h2 where b1 and b2 are the parallel sides or the bases and h is length of height Write a C code of this program

0 Answers   Maxobiz,


Differences between private, protected and public and give examples.

0 Answers  


what is Loop function? What are different types of Loops?

0 Answers  


Can you write a function similar to printf()?

0 Answers  


write a program that a 5 digit number and calculates 2 power that number and prints it.

2 Answers   Vimukti Technologies,


Differentiate between realloc() and free().

0 Answers  


What are friend functions in C++?

0 Answers   BlackRock,


Difference between pass by value and pass by reference?

0 Answers  


What is meant by entry controlled loop? What all C++ loops are exit controlled?

0 Answers   TCS,


Categories