pTAL Reference Manual (H06.03+)

Structures
HP pTAL Reference Manual523746-005
9-35
Declaring Template Structures
SHARED2
specifies that the base of the structure and each field in the structure must
begin at an even-byte address except STRING fields.
SHARED8
specifies that the offset of each field in the structure from the base of the
structure must be begin at an address that is an integral multiple of the width of
the field.
AUTO
specifies that the structure and the fields of the structure be aligned according
to the optimal alignment for the architecture on which the program will run (this
is not the same behavior as the AUTO attribute has in the native mode HP C
compiler).
PLATFORM
specifies that the structure and the fields of the structure must begin at
addresses that are consistent across all languages on the same architecture.
structure-layout
is the identifier of a previously declared structure or structure pointer that provides
the structure layout for this structure.
Declaring Template Structures
A template structure declaration describes a structure layout but allocates no space for
it. You use the template layout in subsequent structure, substructure, or structure
pointer declarations.
identifier
is the identifier of the template structure.
STRUCT
identifier
( * )
field-alignment
structure-layout ;
VST625.vsd
STRUCTALIGN (
)MAXALIGN