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?
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?
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...