Controls the alignment of arrays within struct and class data.
This pragma is compatible with the following platform targets:
|
NEC V800
|
Intel x86
|
MIPS
|
#pragma align_array_members on | off | reset
Remarks:
Choosing how to align arrays:#pragma align_array_members off
struct X1 {
char c; // offset==0
char arr[4]; // offset==1 (char aligned)
};
#pragma align_array_members on
#pragma align mac68k
struct X2 {
char c; // offset==0
char arr[4]; // offset==2 (2-byte align)
};
#pragma align_array_members on
#pragma align mac68k4byte
struct X3 {
char c; // offset==0
char arr[4]; // offset==4 (4-byte align)
};
To check whether this option is on, use __option (align_array_members), described in "Checking Options." By default, this option is off.