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 (Linux*
and Mac OS*) |
|
NODECLARE |
-warn nodeclarations
(Linux and Mac OS) |
|
DEFINE symbol |
-Dname
(Linux and Mac OS) |
|
FIXEDFORMLINESIZE:option |
-extend_source [option]
(Linux and Mac OS) |
|
FREEFORM |
-free or -nofixed (Linux and Mac
OS) |
|
NOFREEFORM |
-nofree or
-fixed (Linux and Mac OS) |
|
INTEGER:option |
-integer_size option (Linux and Mac OS) |
|
OBJCOMMENT |
/libdir:user (Windows) |
|
OPTIMIZE [ : n ] |
-O (Linux and Mac OS) or /O (Windows) |
|
NOOPTIMIZE |
-O0 (Linux and Mac OS) or /Od (Windows) |
|
PACK:option |
-align [option]
(Linux and Mac OS) |
|
REAL:option |
-real_size option (Linux and Mac OS) |
|
STRICT |
-warn stderrors with
-stand (Linux and Mac OS) |
|
NOSTRICT |
-warn nostderrors (Linux and Mac OS) |
NoteFor Windows*, the compiler directive names above are specified using the prefix !DEC$ followed by a space; for example: !DEC$ NOSTRICT. The prefix !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$.
For more information on compiler directives, see Directive Enhanced Compilation.