pTAL Reference Manual (H06.03+)
Contents
HP pTAL Reference Manual—523746-005
iv
8. Arrays
8. Arrays
Declaring Arrays 8-2
Declaring Read-Only Arrays 8-6
Using Constant Lists in Array Declarations 8-8
Read-Only Arrays 8-8
Nonstring Arrays 8-9
9. Structures
Structure Layout 9-3
Overview of Structure Alignment 9-4
Structures Aligned at Odd-Byte Boundaries 9-5
Overview of Field Alignment 9-5
SHARED2 9-6
SHARED8 9-6
PLATFORM 9-7
AUTO 9-7
Differences Between PLATFORM and AUTO 9-8
Field and Base Alignment 9-8
Base Alignment 9-9
Structure Alignment Examples 9-9
Array Alignment in Structures 9-13
Structure Alignment 9-15
Substructure Alignment 9-16
Alignment Considerations for Substructures 9-19
FIELDALIGN Clause 9-20
FIELDALIGN Compiler Directive 9-20
SHARED2 Parameter 9-20
SHARED8 Parameter 9-22
Alignment of Fields 9-24
Optimizing Structure Layouts 9-24
Structure Length 9-26
Alignment of UNSIGNED(17-31) Fields 9-27
Reference Alignment With Structure Pointers 9-27
REFALIGNED Clause 9-28
Default Reference Alignment 9-29
REFALIGNED(2) 9-29
REFALIGNED(8) 9-31
Code Generation for Structure References 9-32
STRUCTALIGN (MAXALIGN) Attribute 9-32










