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/CCSTUDIO: Is it possible to change the --opt_level value using CCS CLI

Part Number: CCSTUDIO

Tool/software: Code Composer Studio

Hi,

Is it possible to change the optimization level for a CCS project/spec

I want to change the optimization level of a CCS project/spec while creating /importing the CCS project/spec.

Can anyone provide the correct options on how to use this. 

Thanks,

Naresh Kumar A

  • Naresh,

    With projectspecs, it is possible to set the optimization level when creating the projectspec file (using the attribute "compilerBuildOptions") , but it is not possible to change an option on the fly during import. 

    Does that answer your question or did I misunderstand?

  • Aarti,

    Thanks for the information.

    I am already defining the opt_level in the projectspec files, I want to run use these existing projectspec files for creating and building the CCS projects with different opt_level/compiler options. 

    I want to pass the opt_level as the input parameter as given below.

    eclipsec -noSplash -data "workspace" -application com.ti.ccstudio.apps.projectCreate -ccs.projectSpec "test.projectspec" -rtsc.xdcVersion "3.50.03.33.core" -ccs.cgtVersion "16.9.4.LTS" -ccs.setCompilerOptions "--opt_level=0"

    Is it possible to use this?

    Thanks,

    Naresh Kumar A

  • Naresh A said:

    I want to pass the opt_level as the input parameter as given below.

    eclipsec -noSplash -data "workspace" -application com.ti.ccstudio.apps.projectCreate -ccs.projectSpec "test.projectspec" -rtsc.xdcVersion "3.50.03.33.core" -ccs.cgtVersion "16.9.4.LTS" -ccs.setCompilerOptions "--opt_level=0"

    I don't believe it is possible to change the compiler option that is already set in projectspec file on the fly at project create time.

    One way to handle this could be to edit the projectspec file to create multiple build configurations with each build config having a different opt_level.