pTAL Reference Manual (H06.08+)

Compiler Directives
HP pTAL Reference Manual523746-006
17-35
FIELDALIGN
FIELDALIGN
FIELDALIGN specifies the default alignment for 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. For more information, see SHARED2
on page 9-6.
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. For
more information, see SHARED8 on page 9-6.
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).
For more information, see AUTO on page 9-7.
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. For more
information, see PLATFORM on page 9-7.
NODEFAULT
specifies that every structure declaration must include a FIELDALIGN Clause on
page 9-20.
Default: FIELDALIGN AUTO
Placement:
Can appear only once in a compilation unit
Must precede all declarations of data, blocks, and procedures
Scope: Applies to the compilation unit
Dependencies: None
FIELDALIGN
( SHARED2
SHARED8
NODEFAULT
PLATFORM
AUTO
VST660.vsd
)