Object code control

Table 1. Object code control pragmas
Pragma Description
#pragma alloca (C only)

Provides an inline definition of system function alloca when it is called from source code that does not include the alloca.h header.

#pragma altivec_vrsave

Enables code in function prologs and epilogs to maintain the VRSAVE register.

#pragma comment

Places a comment into the object module.

#pragma hashome (C++ only)

Informs the compiler that the specified class has a home module that will be specified by #pragma ishome.

#pragma ishome (C++ only)

Informs the compiler that the specified class's home module is the current compilation unit.

#pragma map

Converts all references to an identifier to another, externally defined identifier.

#pragma pack

Sets the alignment of all aggregate members to a specified byte boundary.

#pragma priority (C++ only)

Specifies the priority level for the initialization of static objects.

#pragma reg_killed_by

Specifies registers that may be altered by functions specified by #pragma mc_func.

#pragma strings

Specifies the storage type for string literals.

#pragma weak

Prevents the linker from issuing error messages if it encounters a symbol multiply-defined during linking, or if it does not find a definition for a symbol.