Specifies the addressing mode and location of object code for constant data.
#pragma CONST_SEG [ modifier ] [ name ]
#pragma CODE_SEG DEFAULT
modifier
This optional parameter specifies the addressing mode to use:
name
A section name. You must use a section name defined in your project's linker command file.
To specify the section in which to store constant data and the addressing mode to refer to this data, place this pragma before definitions that define constant and literal values. Use this pragma when porting source code for HC08 architectures to ColdFire V1 architectures.
Use DEFAULT to use the parameters specified in the previous use of this pragma.
The following listing shows an example.
/* Place socks_left in section rodata. */ const int socks_left = 20; /* Place socks_right in section MYCONST. */ #pragma CONST_SEG MYCONST int socks_right = 30;