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

A-: 12
-----------------------------------------------------------------------------------------------
| | | |
| Longint | 8 bytes | 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Longreal | 8 bytes | 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | |
| Pointer | HP3000_16 does not affect pointers. See Table 5-1 . |
| | |
-----------------------------------------------------------------------------------------------
| | | |
| Real | 4 bytes | 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Record | Each field is allocated by | 2-byte |
| | type and record is padded to | |
| | nearest 2-byte boundary | |
| | | |
-----------------------------------------------------------------------------------------------
| | |
| Set | See "Sets" |
| | |
-----------------------------------------------------------------------------------------------
| | | |
| String | See "Strings" | 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Subrange of enumeration | Same as base type | Byte or 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | |
| Subrange of integer | Inside range -32768..32767 |
| | |
-----------------------------------------------------------------------------------------------
| | | |
| Subrange of integer | 2 bytes | 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | |
| Subrange of integer | Outside range -32768..32767 |
| | |
-----------------------------------------------------------------------------------------------
| | | |
| Subrange of integer | 4 bytes | 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
Packed Variables.
A
packed variable
is the element of a packed array or the field of a
packed record. Packed elements and packed fields are allocated and
aligned differently.
Table A-3 shows how the Pascal/V packing algorithm allocates and
aligns the elements of a packed array. The element types are in
alphabetical order. Subsections that Table A-3 references are in
this section, "Pascal/V Packing Algorithm" .
Table A-3. Allocation and Alignment of Packed Array Elements
(Pascal/V Packing Algorithm)
-----------------------------------------------------------------------------------------------
| | | |
| Element Type | Allocation | Alignment |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Array | Use formula in "Arrays" | Byte if element is allocated |
| | | 8 bits; 2-byte otherwise |
| | | |