Hi all,
This applies to other TI processor/compiler.
My intention is to identify and remove unused function in the source code. Looking in the manual TMS320C6000 Optimizing Compiler v7.6 User's Guide (SPRU187V):
Table 2-31. Link-Time Optimization Options
--unused_section_elimination[=off|on]
Eliminates sections that are not needed in the executable module. Default is on.
Not clear about the meaning of "sections". It includes for instance one function among other functions in a object file? Or it is a section of linker file?
Comparing the map file with on and off for --unused_section_elimination give me a rough idea.
In order tool chains I am able to remove and list the unused functions in the source code during linkage.
Eg:.
Deleting Unused Functions
myFunctionUnused in foo.o deleted (regained 44 bytes)