HP 3000 Manuals

Unpacked Variables [ HP Pascal/iX Programmer's Guide ] MPE/iX 5.0 Documentation


HP Pascal/iX Programmer's Guide

Unpacked Variables 

An unpacked variable is either not part of an array or record, or it is
part of an unpacked array or record.

Table 5-1  shows how the HP Pascal packing algorithm allocates and
aligns unpacked variables of each HP Pascal type.  The variable types are
in alphabetical order.  Sections that Table 5-1  references are in
this chapter.

          Table 5-1.  Allocation and Alignment of Unpacked Variables 
                      (HP Pascal Packing Algorithm) 
-------------------------------------------------------------------------------
|                     |                           |                           |
|    Variable Type    |        Allocation         |         Alignment         |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                           |                           |
| Anyptr              |          8 bytes          |          4-byte           |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                                                       |
| Array               | See "Arrays"                                       |
|                     |                                                       |
-------------------------------------------------------------------------------
|                     |                           |                           |
| Bit16               |          2 bytes          |          2-byte           |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                           |                           |
| Bit32               |          4 bytes          |          4-byte           |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                           |                           |
| Bit52               |          8 bytes          |          4-byte           |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                           |                           |
| Boolean             |          1 byte           |           Byte            |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                           |                           |
| Char                |          1 byte           |           Byte            |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                                                       |
| Enumeration         | See "Enumerations and Subranges"                   |
|                     |                                                       |
-------------------------------------------------------------------------------
|                     |                           |                           |
| File                |        See "Files"        |          8-byte           |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                           |                           |
| Function            |          8 bytes          |          4-byte           |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                           |                           |
| Globalanyptr        |          8 bytes          |          4-byte           |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                           |                           |
| Integer             |          4 bytes          |          4-byte           |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                           |                           |
| 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              | See "Records"                                      |
|                     |                                                       |
-------------------------------------------------------------------------------
|                     |                                                       |
| Set                 | See "Sets"                                         |
|                     |                                                       |
-------------------------------------------------------------------------------
|                     |                           |                           |
| Shortint            |          2 bytes          |          2-byte           |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                           |                           |
| String              | See "Strings"          |          4-byte           |
|                     |                           |                           |
-------------------------------------------------------------------------------
|                     |                                                       |
| Subrange            | See "Enumerations and Subranges"                   |
|                     |                                                       |
-------------------------------------------------------------------------------



MPE/iX 5.0 Documentation