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/TMS320F28054F: Optimisation of virtual functions

Part Number: TMS320F28054F
Other Parts Discussed in Thread: MOTORWARE

Tool/software: TI C/C++ Compiler

Dear TI-Team,

I'm working on a mixed C/C++ Project, based on TI's Motorware, example Lab03b (C Source Code).

This project is extended  with some additional features (C++ Source Code) we're using in several other projects in our company (running on a STM32 microcontroller). Here we're having an abstract class with some pure virtual functions.

In my project I'm only using few of the implemented functions, but all functions as well as there called library functions (printf, scanf, ...) are linked in my *.map file.

Due to this, my micro gets very short of free memory.

I did some further investigations on this and found out that for example IAR Workbench provides a Linker optimisation option "Perform C++ Virtual function elimination" which removes unneeded virtual functions.

Is there any similar possibility within CCS to tell the compiler / linker to remove unused virtual functions during the build process?

I'm using CCS 7.4.0.00015 and CGT 18.1.1.LTS.

Thanks a lot in advance for any help!