pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

structure
is the identifier that the declaration creates.
referral
is the identifier of a previously declared structure, structure layout, or structure pointer.
field-alignment
FIELDALIGN
specifies the memory alignment for the base of the structure and for fields within the structure.
For details about the FIELDALIGN clause, see Chapter 9 (page 114).
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.
offset
is an INT constant that specifies a word offset. Specify offset only with indirect variables. The
offset is from the location of the pointer, not from the location of the data pointed to.
structure-layout
is a BEGIN-END block that contains declarations. For more information about the structure
layout, see Chapter 9 (page 114).
Declaring Equivalenced Definition Structures 189