HP Pascal/iX Programmer's Guide (31502-90023)
A-: 11
algorithm. Buffer size is determined by the Pascal/V packing
algorithm.
* Variables of types that specify the HP3000_32 compiler option are
allocated and aligned according to the HP Pascal packing
algorithm.
Unpacked Variables.
An
unpacked variable
is either not part of an array or record, or it is
part of an unpacked array or record. In either case, it is allocated and
aligned the same way.
Table A-2 shows how the Pascal/V packing algorithm allocates and
aligns the elements of an unpacked array or the fields of an unpacked
record. The element or field types are in alphabetical order.
Subsections that Table A-2 references are in this section, "Pascal/V
Packing Algorithm" .
Table A-2. Allocation and Alignment of Unpacked Variables
(Pascal/V Packing Algorithm)
-----------------------------------------------------------------------------------------------
| | | |
| Variable Type | Allocation | Alignment |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Array | Use formula in "Arrays" | Byte or 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Bit16 | 2 bytes | 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Bit32 | 4 bytes | 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Bit52 | 8 bytes | 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Boolean | 1 byte | Byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Char | 1 byte | |
| | | |
-----------------------------------------------------------------------------------------------
| | |
| Enumeration | 1-256 elements |
| | |
-----------------------------------------------------------------------------------------------
| | | |
| Enumeration | 1 byte | Byte |
| | | |
-----------------------------------------------------------------------------------------------
| | |
| Enumeration | 257 or more elements |
| | |
-----------------------------------------------------------------------------------------------
| | | |
| Enumeration | 2 bytes | 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| File | See "Files" | 8-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Integer | 4 bytes | 2-byte |
| | | |