Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Pascal/HP-UX Programmer's Guide > Chapter 5 Allocation and Alignment

Unpacked Variables

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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 “Allocation and Alignment of Unpacked Variables (HP Pascal Packing Algorithm) ” 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 “Allocation and Alignment of Unpacked Variables (HP Pascal Packing Algorithm) ” 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 ”

 

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.