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* OS and Mac OS* X) |
|
NODECLARE |
-warn nodeclarations (Linux OS and Mac OS X) |
|
DEFINE symbol |
-Dname (Linux OS and Mac OS X) |
|
FIXEDFORMLINESIZE:option |
-extend_source [option] (Linux OS and Mac OS X) |
|
FREEFORM |
-free or -nofixed (Linux OS and Mac OS X) |
|
NOFREEFORM |
-nofree or -fixed (Linux OS and Mac OS X) |
|
INTEGER:option |
-integer_size option (Linux OS and Mac OS X) |
|
OBJCOMMENT |
/libdir:user (Windows OS) |
|
OPTIMIZE [ : n ] |
-O (Linux OS and Mac OS X) or /O (Windows OS) |
|
NOOPTIMIZE |
-O0 (Linux OS and Mac OS X) or /Od (Windows OS) |
|
PACK:option |
-align [option] (Linux OS and Mac OS X) |
|
REAL:option |
-real_size option (Linux OS and Mac OS X) |
|
STRICT |
-warn stderrors with -stand (Linux OS and Mac OS X) |
|
NOSTRICT |
-warn nostderrors (Linux OS and Mac OS X) |
NoteFor Windows OS, 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.