dataseg
In this section:
Syntax
#pragma dataseg[=__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. |
Description
Use this pragma directive to place variables in a named section. The section name cannot be a section name predefined for use by the compiler and linker. The variable will not be initialized at startup, and can for this reason not have an initializer, which means it must be declared __no_init. The setting remains active until you turn it off again with the #pragma dataseg=default directive.
Example
#pragma dataseg=__brel MY_SECTION
__no_init char myBuffer[1000];
#pragma dataseg=default