pTAL Reference Manual (H06.03+)
Equivalenced Variables
HP pTAL Reference Manual—523746-005
11-17
Declaring Equivalenced Definition Structures
FIELDALIGN
specifies the memory alignment for the base of the structure and for fields
within the structure. For details about the FIELDALIGN clause, see Section 9,
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.
previous-identifier
is the name of a previously declared simple variable, direct array element,
structure, structure layout, structure pointer, or equivalenced variable.
index
is an INT constant that specifies the offset of the element in previous-ident to
which the equivalenced pointer or variable refers. Specify index only with direct
variables. index must end on a word boundary.
+
-
is the word or byte offset, relative to the base of previous-ident, where the
equivalenced variable is placed. For example, if a and b are declared:
INT(32) a[0:9];
INT b = a+6
then b is placed in bytes 12 and 13 of a.










