HP Pascal/iX Programmer's Guide (31502-90023)
5-: 15
elements of crunched arrays or fields of crunched records. If a type is
not in Table 5-5 , a crunched array or record cannot have elements or
fields of that type.
Table 5-5. Allocation of Crunched Array Elements
and Record Fields
(HP Pascal Packing Algorithm)
-------------------------------------------------
| | |
| Element or Field Type | Allocation |
| | |
-------------------------------------------------
| | |
| Bit16 | 2 bytes |
| | |
-------------------------------------------------
| | |
| Bit32 | 4 bytes |
| | |
-------------------------------------------------
| | |
| Bit52 | 52 bits |
| | |
-------------------------------------------------
| | |
| Boolean | 1 bit |
| | |
-------------------------------------------------
| | |
| Char | 1 byte |
| | |
-------------------------------------------------
| | |
| Integer1 | 4 bytes |
| | |
-------------------------------------------------
| | |
| Longint | 8 bytes |
| | |
-------------------------------------------------
| | |
| Shortint | 2 bytes |
| | |
-------------------------------------------------
| | |
| Crunched array2 | * Minimum # |
| | |
-------------------------------------------------
| | |
| Crunched record2 | * Minimum # |
| | |
-------------------------------------------------
| | |
| Crunched set1 | * Minimum # |
| | |
-------------------------------------------------
| | |
| Subrange1,3 | * Minimum # |
| | |
-------------------------------------------------
(* Minimum number of bits required to represent value.)
1. The value representation has the most significant bit first and
the least significant bit last (no byte swapping).
2. If a record or array contains a crunched structure, it must be
crunched itself.