Intel® Fortran Compiler 17.0 Developer Guide and Reference
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.
The following table shows compiler directives and equivalent command-line compiler options:
Compiler Directive |
Equivalent Command-Line Compiler Option |
---|---|
DECLARE |
-warn declarations (Linux* and OS X*) /warn:declarations (Windows*) |
NODECLARE |
-warn nodeclarations (Linux and OS X) /warn:nodeclarations (Windows) |
DEFINE name |
-Dname (Linux and OS X) /Dname (Windows) |
FIXEDFORMLINESIZE:length |
-extend-source [size] (Linux and OS X) /extend-source[:size] (Windows) |
FREEFORM |
-free or -nofixed (Linux and OS X) /free or /nofixed (Windows) |
NOFREEFORM |
-nofree or -fixed (Linux and OS X) /nofree or /fixed (Windows) |
INTEGER:size |
-integer_sizesize (Linux and OS X) /integer_size:size (Windows) |
OBJCOMMENT |
/libdir:user (Windows) |
OPTIMIZE[: n ] |
-On (Linux and OS X) /On (Windows) |
NOOPTIMIZE |
-O0 (Linux and OS X) /Od (Windows) |
PACK:alignment |
-align recnbytes (Linux and OS X) /align:recnbytes (Windows) |
REAL:size |
-real-sizesize (Linux and OS X) /real-size:size (Windows) |
STRICT |
-warn stderrors with -stand f08 (Linux and OS X) /warn:stderrors with /stand:f08 (Windows) |
NOSTRICT |
-warn nostderrors (Linux and OS X) /warn:nostderrors (Windows) |