HP C Programmer's Guide (92434-90009)

Chapter 2 37
Storage and Alignment Comparisons
Aligning Structures Between Architectures
Figure 2-10. Storage with HP C on the HP 9000 Series 300/400
Figure on page 38 shows the padding for the example code fragment:
CCS/C on the HP 1000 and HP 3000
Figure 2-11. on page 39 shows how the members of the structure defined in <Undefined
Table 2-5. Padding on the HP 9000 Series 300/400
Padding
Location
Reason For Padding
a+1 Within structures align short on a 2-byte boundary.
a+5 Aligns the short z on a 2-byte boundary.
a+14 Structures within structures are aligned on a 2-byte boundary.
a+17 Aligns the short z on a 2-byte boundary.
a+25 Doubles are 2-byte aligned within structures.
a+37 Pads a to a 2-byte boundary.