HP C/iX Reference Manual (31506-90011)

154 Chapter9
HP C/iX Implementation Topics
Data Alignment Pragma
Data Alignment Using HP_ALIGN MPE_16
When the sample code fragment is compiled and run using the HP_ALIGN
MPE_16 pragma, data is stored as shown in Figure 9-4. on page 157.
Figure 9-4. Storage Using the HP_ALIGN MPE_16 Pragma
a+5 Aligns the short z on a 2-byte boundary.
a+13 Fills out the struct x to a 2-byte boundary.
a+17 Aligns the short z on a 2-byte boundary.
a+25 Fills out the structure to a 2-byte boundary.
a+26 through a+31 Aligns the double u on an 8-byte boundary. The bit-field s begins
immediately after the previous item at a+41. Two bits of padding is
necessary to align the next byte properly.
a+43 through a+47 Fills out the struct q to an 8-byte boundary.
Table 9-3. Padding on HP 9000 Series 700/800 and HP 3000 Series 900
Padding Location Reason for Padding