Specifies how to align structure and class data.
#pragma options align= alignment
alignment
Specifies the boundary on which structure 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 Mac OS alignment. |
| mac68k4byte | Aligns every field on 4-byte boundaries. |
| power | Aligns every field on its natural boundary. 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. |
| 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 #pragmaoptionsalign statement. |