Equivalent Compiler Options

Some compiler directives and compiler options have the same effect (see the following table). 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 directive Equivalent command-line compiler option
DECLARE /warn:declarations or /4Yd
NODECLARE /warn:nodeclarations or /4Nd
DEFINE symbol /define:symbol or /Dsymbol
FIXEDFORMLINESIZE:option /extend_source[:option] or /4Loption
FREEFORM /free or /nofixed, or /4Yf
NOFREEFORM /nofree, /fixed, or /4Nf
INTEGER:option /integer_size:option or /4Ioption
OBJCOMMENT /libdir
PACK:option /alignment[:option] or /Zpoption
REAL:option /real_size:option or /4Roption
STRICT /warn:stderrors with /stand:f90 or /4Ys
NOSTRICT /4Ns

Note that any of the compiler directive names above can be specified using the prefix !MS$; for example, !MS$NOSTRICT is allowed.

For rules on using compiler directives, see Syntax Rules for General Directives.