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 constseg is the reserved word default, the compiler selects the default read-only 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 (Set default read-only section name) command-line option or by setting the Const Section Name property of the file or project.