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 comment

Places a comment into the object module.

#pragma fini

Specifies the order in which the runtime library calls a list of functions after main() completes or exit() is called.

#pragma init

Specifies the order in which the runtime library calls a list of functions before main() is called.

#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 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.