constseg
In this section:
Syntax
#pragma constseg[=__memoryattribute ]{SECTION_NAME|default}Parameters
| An optional memory attribute denoting in what memory the section will be placed; if not specified, default memory is used. |
| A user-defined section name; cannot be a section name predefined for use by the compiler and linker. |
| Uses the default section for constants. |
Description
Use this pragma directive to placeconstant variables in a named section. The section name cannot be a section name predefined for use by the compiler and linker. The setting remains active until you turn it off again with the #pragma constseg=default directive.
Example
#pragma constseg=__brel MY_CONSTANTS
const int factorySettings[] = {42, 15, -128, 0};
#pragma constseg=default