Tool/software: Code Composer Studio
#pragma DATA_SECTION ( symbol , " section name ")
How do you give a section name to an address range?
I am new to programming so sorry if it the answer is very obvious.
Thank you in advance.
Viswanath.
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.
Tool/software: Code Composer Studio
#pragma DATA_SECTION ( symbol , " section name ")
How do you give a section name to an address range?
I am new to programming so sorry if it the answer is very obvious.
Thank you in advance.
Viswanath.
Before I can answer, you need a bit of background. Please read the first part of the article Linker Command File Primer. Get a clear understanding of how input sections come from object files, are combined into output sections, and those output sections are allocated to memory ranges.
The DATA_SECTION pragma is how you tell the compiler which input section to use for a particular global or static variable.
Thanks and regards,
-George