Synopsis

#pragma zeroedseg("name" | default )

Description

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

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