bss_seg

Visual Studio 6.0

#pragma data_seg( ["section-name"[, "section-class"] ] )

Specifies the default section for unitialized data. The data_seg pragma has the same effect but works with initialized or unitialized data. In some cases, you can use bss_seg to speed up your load time by putting all unitialized data in one section.

#pragma bss_seg( "MY_DATA" )

causes uninitialized data allocated following the #pragma statement to be placed in a section called MY_DATA.

Data allocated using the bss_seg pragma does not retain any information about its location.

The second parameter, section-class, is included for compatibilty with versions of Visual C++ prior to version 2.0, and is now ignored.

Show: