HP Pascal/iX Programmer's Guide (31502-90023)
5-: 11
-----------------------------------------------------------------------------------------------
| | | |
| Localanyptr | 4 bytes | 4-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Longint | 8 bytes | 4-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Longreal | 8 bytes | 8-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Pointer | 4 bytes | 4-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Procedure | 8 bytes | 4-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Real | 4 bytes | 4-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Record, crunched | Fields are allocated by type, and record is padded | Byte |
| | to byte boundary. | |
| | | |
-----------------------------------------------------------------------------------------------
Table 5-3. Allocation and Alignment of Packed Array Elements
(HP Pascal Packing Algorithm) (cont.)
-----------------------------------------------------------------------------------------------
| | | |
| Element Type | Allocation | Alignment |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Record, packed | Fields are allocated by type, and record is padded | Largest alignment |
| | to the alignment boundary. | boundary of any |
| | | field, or byte, |
| | | whichever is |
| | | larger. |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Record, unpacked | Fields are allocated by type, and record is padded | Largest alignment |
| | to the alignment boundary. | boundary of any |
| | | field. |
| | | |
-----------------------------------------------------------------------------------------------
| | |
| Set | See "Sets" . |
| | |
-----------------------------------------------------------------------------------------------
| | | |
| Shortint | 2 bytes | 2-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Strings | See "Strings" . | 4-byte |
| | | |
-----------------------------------------------------------------------------------------------
| | |
| Subrange | See "Enumerations and Subranges" . |
| | |
-----------------------------------------------------------------------------------------------
Example
VAR
uba : ARRAY [1..3] OF Boolean;
pba : PACKED ARRAY [1..3] OF Boolean;