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.

C28x CLA compiler 6.1.2: predefined CLA macro?

Other Parts Discussed in Thread: CONTROLSUITE

Hello,

from the controlsuite examples, I have found that there is a predefined macro "__TMS320C28XX_CLA0__" when compiling for cla0 via commandline option --cla_support=cla0.

By testing, I have found that there is also a predefined macro "__TMS320C28XX_CLA__" when compiling for cla in general.

I did not find these predefined macros in the newest compiler documentation spru514e.pdf.

Am I missing something?

  • Here is how you can see all of the predefined macros supplied by the compiler, including the ones that have not made it into the documentation yet.

    Create an empty source file named null.cla (or null.c for a non-CLA build).  Build it like this: 

    % cl2000 --preproc_macros -v28 --cla_support=cla0 null.cla

    Then inspect the resulting null.pp file.  The option --preproc_macros causes the compiler to show you all of #define macros available in that build.  For an empty source file, that amounts to only the predefined ones.

    Thanks and regards,

    -George

  • Yes, I found the missing predefined macros via --preproc_macros.

    Could you add a change request for the compiler documentation to add these - or add the hint regarding the use of --preproc_macros to find the actual, complete list?

    Thanks!

  • StephanS said:
    Could you add a change request for the compiler documentation

    I filed SDSCM00046793 in the SDOWP system.  Feel free to track it with the SDOWP link below in my signature.

    Thanks and regards,

    -George


  • Okay, thanks!