Synopsis

#pragma dataseg("name" | default)

Description

The dataseg pragma sets the name of the section that the compiler emits initialized data into. If the argument to the dataseg pragma is a string, a section of that name is created and the compiler emits initialized data for all following initialized statics or externals following the pragma into that section. If the argument to dataseg is the reserved word default, the compiler selects the default data section name.

The default data section name, if no other directives have been given, is IDATA0. You can change the default data section name for the whole compilation unit by using the -Rd (Set default initialized data section name) command-line option or by setting the Data Section Name property of the file or project.