Some compiler directives and compiler options have the same effect, as shown in the table below. However, compiler directives can be turned on and off throughout a program, while compiler options remain in effect for the whole compilation unless overridden by a compiler directive.
Compiler directives and equivalent command-line compiler options are:
Compiler Directive |
Equivalent Command-Line Compiler Option |
DECLARE |
-warn declarations |
NODECLARE |
-warn nodeclarations |
DEFINE symbol |
-Dname |
FIXEDFORMLINESIZE:option |
-extend_source [option] |
FREEFORM |
-free or -nofixed |
NOFREEFORM |
-nofree or -fixed |
INTEGER:option |
-integer_size option |
PACK:option |
-align [option] |
REAL:option |
-real_size option |
STRICT |
-warn stderrors with -stand |
NOSTRICT |
-warn nostderrors |
Note that the compiler directive names above are specified using the prefix !DEC$ followed by a space. For example: !DEC$ NOSTRICT
Note
The prefix !DEC$ is normally used. !DEC$ works for both fixed-form and free-form source. You can also use these alternative prefixes for fixed-form source only: cDEC$, CDEC$,*DEC$, cDIR$, CDIR$, *DIR$, and !MS$.