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.

TMS320F280039C: Difference between the pragma functions

Part Number: TMS320F280039C

Hi Champ,

I am asking for my customer.

In Compiler user guide, there are pragma for allocating space for code and data. (i.e. #pragma CODE_SECTION ( symbol , " section name ") )

What is the above pragma function different from #pragma SET_CODE_SECTION ( symbol , " section name ") ? And how to apply the SET_CODE_SECTION functions in such use case ?

Thanks and regards,

Johnny

  • #pragma CODE_SECTION applies to only one function, which is named as an input.  #pragma SET_CODE_SECTION does not accept a symbol name as an input.  It applies to all the functions between it and the next instance of #pragma SET_CODE_SECTION.  This brief summary does not cover all of the details.  Please see those details by searching for those pragmas in the C28x compiler manual.

    Thanks and regards,

    -George