ATTRIBUTES ALIGN

The ATTRIBUTES directive option ALIGN specifies the byte alignment for a variable. It takes the following form:

Syntax

cDEC$ ATTRIBUTES ALIGN: n:: var

c

Is one of the following: C (or c), !, or *. (See Syntax Rules for Compiler Directives.)

n

Is the number of bytes for the minimum alignment boundary.

For allocatable variables, the boundary value must be a power of 2 between 1 and 16384, such as 1, 2, 4, 8, 16, 32, 64, 128, and so on.

For non-allocatable variables, the boundary value must be a power of 2 between 1 and 64 on Windows* systems, between 1 and 2**16 on Linux* systems, or between 1 and 2**12 on Mac OS* X systems.

var

Is the variable to be aligned.

See Also