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/TM4C1294KCPDT: Common compiler options

Part Number: TM4C1294KCPDT

Tool/software: Code Composer Studio

Hi Folks,

In CCS (preferably 9.0.0 and above) how can I create compiler setting files, that I can distribute / share in multiple project? Like

  • exclude heap and stack options into one file, because they are same for both release and debug builds
  • or define UART number that I use for tracing, because it is common for of my any TM4C based applications

A similar solution: I use Microsoft build solutions for other purposes. In those systems developer can create commonly used properties, so called pros file and include them into their solution.

Regards,

Norbert

  • Norbert,

    You can create a command file that includes a set of compiler options.  The file can be specified here:

    The options specified in the file will be inserted into the commands passed to the build tools.  Not that you need to specify the options inside the file the same way they appear when passed on the command line

    --code_state=16

    Regards,

    John

  • Hi John,

    it seems very useful, but it seems that it is only available for compiler not the linker, but stack or heap size parameters are adjusted there. Can I specify them in that file and they are processed at the right state of the compilation process?

    Regards,

    Norbert

  • Norbert Toth said:
    it seems very useful, but it seems that it is only available for compiler not the linker, but stack or heap size parameters are adjusted there. Can I specify them in that file and they are processed at the right state of the compilation process?

    The linker can also read command line options from linker command files (.cmd file).

    All .cmd files in a project are by default passed to the linker. E.g. created a common_linker_options.cmd in a project containing the following, which was used to set the stack and heap size for a project:

    --heap_size=8192
    --stack_size=512

    It is also possible to add a linker command file to the project properties: