User`s guide

Pragmas for the DSP56800 and DSP56800E
Pragma Reference
411Targeting MC56F83xx/DSP5685x Controllers
<sectname>
Identifier by which this user-defined section is referenced in the source.
Listing C.16 Sample Code - pragma define_section and pragma section
/* 1. Define the section */
#pragma define_section mysection ".mysection.data" RW
/* 2. Specify the data to be put into the section. */
#pragma section mysection begin
int a[10] = {'0','1','2','3','4','5','6','7','8','9'};
int b[10];
#pragma section mysection end
int main(void) {
int i;
for (i=0;i<10;i++)
b[i]=a[i];
}
/* 3. In the linker command file, add “.mysection.data” in the “.data
sections area of the linker command file by inserting the following
line:
* (.mysection.data)
*/
Related Pragma
define_section
simple_prepdump
Controls the suppression of comments in preprocessor dumps.
Prototype
#pragma simple_prepdump on | off | reset