General Compiler Directive: Modifies characteristics of a common block.
Syntax
cDEC$ PSECT /common-name/ a [, a] ...
c
Is one of the following: C (or c), !, or *. (See Syntax Rules for Compiler Directives.)
common-name
Is the name of the common block. The slashes ( / ) are required.
a
Is one of the following:
Specifies minimum alignment for the common block. ALIGN only has an effect when specified on Windows* and Linux* systems.
The val is a constant ranging from 0 through 6 on Windows* systems and 0 through 4 on Linux* systems. The specified number is interpreted as a power of 2. The value of the expression is the alignment in bytes.
The keyword is one of the following:
Keyword | Equivalent to val |
---|---|
BYTE | 0 |
WORD | 1 |
LONG | 2 |
QUAD | 3 |
OCTA | 4 |
PAGE 1 | i32: 12 i64: 13 |
1 Range is 0 to 13 except on L*X32, where the range is 0 to 12. |
Determines whether the contents of a common block can be modified during program execution.
Description
If one program unit changes one or more characteristics of a common block, all other units that reference that common block must also change those characteristics in the same way.
The defaults are ALIGN=OCTA and WRT.