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.

Memory Allocation

Dear All,

          I have written a function outside  the file and commented its calling, but still the compiler allocates memory for that function Is there are any compiler settings to avoid the alocation of memory for commented or un called functions. Please Clarify me regarding this.

Regards,

Swamy D.

  • Hello!

    Hi!

    Properties>Build > C2000 Compiler > Advanced Options > Runtime Model Options category. Set the Place each function in a separate subsection (--gen_func_subsections, -ms) option to on.

    Regards,

    Igor