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.

How to add a group in TCF file instead of CMD

Hi,

In cache optimization doc, it is said sometimes we need put functions to be adjacent by define a group in CMD files. Since I use DSP/BIOS, how to define the same function in TCF file?

Thanks!

SECTIONS
{
.cinit > L2SRAM
.GROUP > L2SRAM
{
.funct1.funct2
.text
}
.stack > L2SRAM
...
}

Jianbin

  • Jianbin,
    in your TCF script you can specify that you will create your own linker command file, where you will allocate compiler sections and any other additional sections that you created. The parameter you have to set is bios.MEM.USERCOMMANDFILE:

    bios.MEM.USERCOMMANDFILE = 1;

    Then, you need to add a new linker command file to the project, and in that file you can insert the SECTIONS directive from your post.

  • Hi, Sasha

    Thanks for your reply!

    Then how to specify the CMD file's name and directory? Or just put the CMD into root directory and CCS can automatically detect it?

    Thanks

     

    Jianbin

  • The easist way to do it so to right-click on the project, and select New->File. Type in the name for the new file, and be sure to use the extension .cmd. CCS will add it to the project and recognize it as a linker command file. The file will be initially empty, but you can open it in CCS and add the content you need.