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.

Why my CCS (ver. 4.1.0.02003) doesn`t remove unused functions?

Hi!

Now I use CCS (ver. 4.1.0.02003). I set Optimisation Level = 3, but anyway all unused functions doesn`t remove from output file.

Any of unused functions have no calling at all.

Anybody please tell to me - why compiler (with latest version) doesn`t remove this functions? And how to remove them?

Alex.

  • I found the problem solving.

    See: "TMS320C28x Optimizing C_C++ Compiler v5.0.0" (spru514c), Section 4.5 "Generating Function Subsections (--gen_func_subsections Compiler Option)":

    The --gen_func_subsections compiler option remedies this problem by placing each function in a file in its own subsection. Thus, only the functions that are referenced in the application are linked into the final. 

     Alex.