##### Synopsis

#pragma constseg(" name " | default)

##### Description

The constseg pragma sets the name of the section that the compiler emits read-only data into. If the argument to the constseg pragma is a string, a section of that name is created and the compiler emits all following read-only data into that section. If the argument to zeroedseg is the reserved word default, the compiler selects the default read-only data section name.

The default read-only data section name, if no other directives have been given, is CONST. You can change the default read-only data section name for the whole compilation unit by using the -Rk command line option or by setting the Constant Section Name property of the file or project in the CrossStudio development environment.