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

Is c++ a difficult language?

0 Answers  


What is a storage class in C++

1 Answers  


What is the difference between the functions rand(), random(), srand() and randomize()?

0 Answers  


Search for: what is pair in c++?

0 Answers  


Can member functions be private?

0 Answers  


What is binary object model?

0 Answers  


What is this pointer in c++?

1 Answers  


What is time h in c++?

0 Answers  


What do you mean by inheritance in c++?

0 Answers  


A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.

2 Answers  


What is an operator in c++?

0 Answers  


What are the conditions that have to be met for a condition to be an invariant of the class?

1 Answers  


Categories