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/TMS320F28377S: How to treat a specific c file as cla file ?

Part Number: TMS320F28377S

Tool/software: TI C/C++ Compiler

Hi,

I'am using CLA in my program for parrallel processing with the CPU. I want the CLA and the CPU use same functions. I find an option in the compiler option to treat c files as cla files, but this works on all c files. I just want one c file, like a component Library, with functions which could be used by CLA and CPU.

In the TI document "TMS320C28x Optimizing C/C++ Compiler v16.9.0.LTS" I also find the option to treat c files as cla files : "If you use the --cla_default option, files with an extension of .c are also compiled as CLA files."

There is a way to only compile one c file as cla file ?

Regards,

Quentin.

  • Quentin,

    In the project explorer window in CCS, if you right-click on the file and select "Show build settings..." you can set file specific compiler options.  

    Choose "--cla_default" under "C2000 Compiler -> Advanced Options -> Language Options", then click apply.  The file icon should change showing the option has just been set for that file.

    Can you try that to see if it works for you?

    Regards,

    Richard

  • Richard,

    It works for me,

    Thanks !

    Quentin.