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.

portable alternative to #pragma DATA_SECTION and CODE_SECTION

Hi all,

is there an alternative to the #pragma DATA_SECTION and CODE_SECTION?

These are very handy for allocating single variables and functions to special memory sections, but highly non-portable.

I guess there is actually no alternative, but is TI thinking about an alternative that is more portable - and can be enabled or disabled at one centralized place via #ifdef instead of #ifdefs around each #pragma?