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.
| If alignment is ... | The compiler ... |
|---|---|
| Byte | Aligns every field on a byte boundary. |
| 68k/mac68k | Aligns every field on 2-byte boundaries, unless a field is 1 byte long, This is standard alignment for 68K. This is word align alignment in the code generation panel. |
| coldfire / mac68k4byte | Aligns every field on 4-byte boundaries, unless a field is 1 or 2 bytes long. This is the standard alignment for ColdFire. This is long alignment in the code generation panel. |
| native | Aligns every field using the alignment defined with pragma native_coldfire_alignment. |
| packed | Aligns every field on a 1-byte boundary. This is byte alignment in the code generation panel. |
| reset | Resets to the value in the previous #pragma options align statement. |
The use of this pragma is deprecated. Fields are aligned on 4-byte boundaries and doubles are aligned on 8-byte boundaries. This pragma does not correspond to any panel setting.