SPNU151W January 1998 – March 2023 66AK2E05 , 66AK2H06 , 66AK2H12 , 66AK2H14 , AM1705 , AM1707 , AM1802 , AM1806 , AM1808 , AM1810 , AM5K2E04 , OMAP-L132 , OMAP-L137 , OMAP-L138 , SM470R1B1M-HT , TMS470R1A288 , TMS470R1A384 , TMS470R1A64 , TMS470R1B1M , TMS470R1B512 , TMS470R1B768
In order to facilitate the removal of unused code, the linker generates a feedback file containing a list of functions that are never referenced. The feedback file must be used the next time you compile the source files. The syntax for the --generate_dead_funcs_list option is:
--generate_dead_funcs_list= filename
If filename is not specified, a default filename of dead_funcs.txt is used.
Proper creation and use of the feedback file entails the following steps:
armcl file1.c file2.c --gen_func_subsectionsarmcl --run_linker file1.c.obj file2.c.obj --generate_dead_funcs_list=feedback.txtAlternatively, you can combine steps 1 and 2 into one step. When you do this, you are not required to specify --gen_func_subsections when compiling the source files as this is done for you automatically. For example:
armcl file1.c file2.c --run_linker --generate_dead_funcs_list=feedback.txtarmcl file1.c file2.c --use_dead_funcs_list=feedback.txtarmcl --run_linker file1.c.obj file2.c.objAlternatively, you can combine steps 3 and 4 into one step. For example:
armcl file1.c file2.c --use_dead_funcs_list=feedback.txt --run_linkerDead Functions Feedback: The format of the feedback file generated with --generate_dead_funcs_list is tightly controlled. It must be generated by the linker in order to be processed correctly by the compiler. The format of this file may change over time, so the file contains a version format number to allow backward compatibility.