How do I enable linker optimization?

Rating:
 
Vote for this:
Good  -  Bad

Answer

Linker optimization is the process where the linker removes unused code and data sections from the output binary. Runtime- and middleware libraries typically include many functions that are not used by all applications, thus vasting valuable memory unless removed from the output binary.

To enable linker optimization, select the "Remove unused code" and/or the "Remove unused data" checkboxes in the Project wizard as appropriate (at project creation time).

 

Tags for this item