C/C++ Programmer's Guide (G06.25+)

HP C Implementation-Defined Behavior
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
A-29
G.5 Common Extensions
pointers are those of type long int or those of type int with the 32-bit (wide) data
model in effect, in which case an int is represented by 32 bits.
TNS systems are word-aligned. In the following example, the size of str differs
depending on whether this code is executed on a word-aligned or byte aligned
machine. On a word aligned machine str is allocated 6 bytes of storage. On a byte-
aligned machine, str is allocated 5 bytes of storage. On the TNS system, str is
allocated 6 bytes of storage.
Struct tag{
char c[3];
int x;
} str;