How to reduce a final size of executable?
Answers were Sorted based on User's Feedback
Answer / lylez00
Don't include unnecessary header files.
Don't link with unneccesary object files.
Is This Answer Correct ? | 16 Yes | 2 No |
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 |
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 |
Is c++ a difficult language?
What is a storage class in C++
What is the difference between the functions rand(), random(), srand() and randomize()?
Search for: what is pair in c++?
Can member functions be private?
What is binary object model?
What is this pointer in c++?
What is time h in c++?
What do you mean by inheritance in c++?
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.
What is an operator in c++?
What are the conditions that have to be met for a condition to be an invariant of the class?