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.

Compiler/TMS320F28066: Compiler options for unused functions

Part Number: TMS320F28066

Tool/software: TI C/C++ Compiler

Hi, 

There's a request about the compiler. Does it have an option for the unused functions? There are functions like fun1() and fun2(), which are defined in a *.c file, but never be called in the project. Is it possible to just compile fun1() and fun2(), but NOT to link into the *.out? 

That's, I don't want to see the fun1() and fun2() in the *.out. Is that possible?

Thanks a lot.

Br, Jordan

  • Jordan,

    I guess this should be post to compiler forum and you'd better indicate which version CGT are you using:

    https://e2e.ti.com/support/development_tools/compiler/

    This should have nothing to do with device but can be supported for all parts.

    You can check --gen_func_subsections or -mo command according to CGT user guide spru514, or you can simply enable it in build options under build -->  C2000 compiler --> Advanced options --> Runtime model options tab if you CCS version and CGT version can support.

    Best Regards,

    Ricky Zhang