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/TMS320F28035: IEC60730_F28035_STYL.lib optimization

Part Number: TMS320F28035


Tool/software: TI C/C++ Compiler

Hello,

in order the reduce the size of the IEC60730_F28035_STL.lib our customer wants to get rid of the following self-tests and enable some optimization.

Tests to be deleted:

  • CLA
  • Comp
  • ECap
  • LIN

Can the library be recompiled without these tests and be optimized with level 1 (register+local optimizations)?

In addition they would use --gen_func_subsections to remove any other unused functions.

Thank you and best Regards

Ambroise

  • We provide the CCS projects for the library.

    You can rebuild the library with whichever compiler flags you wish.

    There should be no need to delete the functions because if you do not use the code in your application, then then those functions should not get included in your application and not consume memory.

    You can also use a compiler flag to put each function in its own setting to help ensure the linker is removing unused code sections from your application. Yes, --gen_func_subsections would do this.

    sal