VMS Help
PASCAL, Attributes, Alignment
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
Alignment attributes indicate whether the object should be
aligned on a specific address boundary in memory.
The ALIGNED attribute indicates the object is to be aligned on a
specific memory boundary.
Syntax:
ALIGNED [[( n )]]
The default alignment of an object depends on its size. The
constant expression n must denote an integer. If you omit n,
the default is 0, indicating byte alignment.
An aligned object is aligned on the memory boundary indicated by
n. The constant expression n indicates that the address of the
object must end in at least n zeros. ALIGNED(0) specifies byte
alignment, ALIGNED(1) specifies word alignment, ALIGNED(2)
specifies longword alignment, ALIGNED(3) specifies quadword
alignment, ALIGNED(4) specifies octaword alignment, ALIGNED(9),
specifies 512-byte alignment, and ALIGNED(13) specifies
8192-byte alignment.
See the "Compaq Pascal Language Reference Manual" for the
complete description of using the ALIGNED attribute.
The UNALIGNED attribute specifies that an object can be aligned
on any bit boundary. An UNALIGNED variable cannot have an
allocation size greater than 32 bits.
See the "Compaq Pascal Language Reference Manual" for the
complete description of using the UNALIGNED attribute.
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.