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/TMS320F28335: How to detect compiler version in C codes?

Part Number: TMS320F28335


Tool/software: TI C/C++ Compiler

Dear Champs,

I am asking this for our customer.

How does the user check compiler version in C codes?

like

#if defined(__GNUC___)

    ...

#elif defined(__TI_C2000__)    <--- how to detect that C2000 compiler is used.

    ...

#endif

Wayne Huang