This would probably be achieved in the linking stage of the GCC compiler?
But are there any specific references on this stage?
Also, is there a tool that can perform code size reduction by knowing which pieces of code isn’t called?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can compress the final size of your executable using tools like:
Here are a few references regarding stripping code during the gcc/ld compilation or linking phases:
So I imagine this has to be done on a code level and can’t be done on compiled code in the way that Java bytecode can be worked with…