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.
Hi all,
I am using CCS V4.1.2.00027 to compile Simulink-generated C-Code for a TMS320F28234. Now I added several C-files to the project I only use a few functions of. Code Composer compiles and links all functions, even the unused ones. I can see all functions defined in the C-files in the map file, even those which are never called anywhere in my project. As I want to reduce the code size, I tried the --program_level_compile option. This did not help. The list of removed dead functions generated by the linker is empty.
Is there any possibility to remove the unused functions? Thank you in advance for your advice.
Regards,
Michael
Michael,
The --gen_func_subsections compiler option will place each function in a source file within its own subsection, thereby making it possible to be removed if it is not referenced. The option is documented in the C28x Compiler Users Guide, section 4.2.1.