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.

What is the option "-c" in a linker command file?

Hi,

I find that there is one line "-c" in spra291.pdf, see below please. It is about C6000 DSP core.

What is the meaning of it? I do not find an explanation on line, including TI wiki.

Thanks,

....

/*********************************************************************/
/* lnk.cmd – example linker command file */
/*********************************************************************/
–c
–heap 0x2000
–stack 0x8000
MEMORY
{
VECS: o = 00000000h l=00200h /* reset & interrupt vectors*/
IPRAM: o = 00000200h l=0FE00h /* internal program memory */
IDRAM: o = 80000000h l=10000h /* internal data memory */
}

  • It is a linker option. From the C6000 compiler user's guide (spru187.pdf):

      --rom_model,-c               Link using ROM autoinitialization model

    5.1.1 of  the user's guide has more details.

    Thanks

    ki