options

Specifies how to align struct and class data.

Syntax

#pragma options align= alignment

Parameter

alignment

Specifies the boundary on which struct and class data is aligned in memory. Values for alignment range from 1 to 16, or use one of the following preset values:

If alignment is … The compiler …
mac68k Aligns every field on a 2-byte boundaries, unless a field is only 1 byte long. This is the standard alignment for 68K Macintoshes.
mac68k4byte Aligns every field on 4-byte boundaries.
power Aligns every field on its natural boundary. This is the standard alignment for Power Macintoshes. For example, it aligns a character on a 1-byte boundary and a 16-bit integer on a 2-byte boundary. The compiler applies this alignment recursively to structured data and arrays containing structured data. So, for example, it aligns an array of structured types containing an 4-byte floating point member on an 4-byte boundary.
native Aligns every field using the standard alignment. It is equivalent to using mac68k for 68K Macintoshes and power for Power Macintoshes.
packed Aligns every field on a 1-byte boundary. It is not available in any panel. This alignment causes your code to crash or run slowly on many platforms. Use it with caution.
reset Resets to the value in the previous #pragma options align statement.

NOTE There is a space between options and align

Targets
All platforms.
Remarks
This pragma corresponds to the Struct Alignment setting in the <Target> Processor or <Target> CodeGen panel.