This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379D: Unused Code Appears In the Output File

Part Number: TMS320F28379D

Greetings,

I have a project where I commented out some unused routines. The project built with no issues and I recorded the unused flash from the map file. Then I uncommented out the unused routines and rebuilt, again iwth no issues. I examined the unused flash from the new map file and discovered that the amount had dropped.

I was under the impression that the linker would not add a routine to the output if it wasn’t being used. I have tried to find something in the Linker section of the project properties which would enable/disable this feature, but I have not been able to find anything. Am I mistaken about the linker behavior, or is there a setting I need to make?

Thank you,

Ed