HP Pascal/iX Programmer's Guide (31502-90023)

5-: 2
a variable contains the variable's name. If the name does not fit the
space, it is printed outside, with an arrow pointing to the space.
Example
The variables a and b occupy one bit each, c occupies six bits, d and e
occupy two bytes each, f occupies three bytes, and g occupies eight
bytes.
Allocation, Alignment, and Packing Algorithm
Allocation
is the assignment of memory to variables. When the compiler
assigns one byte of memory to the variable x, you can say that both the
byte and x are
allocated
(the byte is allocated to x, and x is allocated
one byte of memory).
Alignment
refers to the position at which a variable's share of memory
begins. There are several types of alignment.
* Bit-aligned: If the byte that the compiler allocates to x can
begin on a bit boundary.
* 1-byte-aligned: If the byte that the compiler allocates must
begin on a byte boundary.
* 2-byte-aligned: If the byte that the compiler allocates must
begin on a 2-byte boundary.
* 4-byte-aligned: If the byte that the compiler allocates must
begin on a 4-byte boundary.
* 8-byte-aligned: If the byte that the compiler allocates must
begin on a 8-byte boundary.
For the list of possible alignments, refer to "ALIGNMENT" in the
HP
Pascal/iX Reference Manual
or the
HP Pascal/HP-UX Reference Manual
,
depending on your implementation.
Example
The variables c and d are allocated one byte each, but c is bit-aligned
and d is byte aligned.