Portability and migration

Table 1. Portability and migration pragmas
Pragma Description
#pragma align

Specifies the alignment of data objects in storage, which avoids performance problems with misaligned data.

#pragma namemangling (C++ only)

Chooses the name mangling scheme for external symbol names generated from C++ source code.

#pragma namemanglingrule (C++ only)

Provides fined-grained control over the name mangling scheme in effect for selected portions of source code, specifically with respect to the mangling of cv-qualifiers in function parameters.

#pragma object_model (C++ only)

Sets the object model to be used for structures, unions, and classes.

#pragma pass_by_value (C++ only)

Specifies how classes containing const or reference members are passed in function arguments.