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.

CCS/tms320f28034: Code reduction

Part Number: TMS320F28034

Tool/software: Code Composer Studio

Original program called in a lot of libraries.  Over a long development time, a lot was trimmed out of the I/O and the software.  What is the best to know what code especially from the libraries can be eliminated easily without tearing up the total package?  Like in Windows, Norton can tell what is being used or used seldom so it can be eliminate.

  • You want to eliminate "dead" code, code which is never called. For the most part, if the library files are compiled with --gen_func_subsections=on, the linker will automatically eliminate dead code at link time. However, it is still possible to have functions which are referred to but not actually called. To detect that, you want a coverage tool. That's out of my area of expertise, so I'm going to let someone else answer that.