Equivalent Visual Fortran Compiler Options

The following table lists the Microsoft Fortran PowerStation style options and their Visual Fortran equivalents. The Microsoft Fortran PowerStation options (such as /FAc) are case-sensitive; other Visual Fortran options (such as /asmfile) are not case-sensitive.

This table also lists some compiler options that were not supported by Microsoft Fortran PowerStation, but are supported by Visual C++.

Fortran PowerStation Option (and Category) Visual Fortran Command-Line Option
Listing Options
/FA Assembly listing. Specify /noasmattributes with /asmfile[:file] or /FA.
/FAc Assembly listing with machine code. Specify /asmattributes:machine with /asmfile[:file] or /FAc.
/FAs Assembly listing with source code. Specify /asmattributes:source with /asmfile[:file] or /FAs.
/FAcs Assembly listing with machine instructions and source code. Specify /asmattributes:all with /asmfile[:file] or /FAcs.
/Fa[file] Assembly listing to file file. Specify /asmfile[:file] with /noasmattributes or specify /Fa[file].
/Fc[file] Assembly listing with source and machine code to file file. Specify /asmfile[:file] with /asmattributes:all or specify /Fc[file].
/Fl[file] Assembly listing with machine instructions to file file. Specify /asmfile[:file] with /asmattributes:machine or specify /Fl[file].
/Fs[file] Source listing with compiled code. Specify /list[:file] with /show:map or specify /Fs[file].
Code Generation Options
/FR[file] Generates extended Source Browser information. Specify /browser[:file] or /FR[file].
/G4 /G5 Generates code for specific ia32 chip architectures. Specify /tune:keyword.
/Ob2 Automatic inlining of code, use with /Ox. Specify /inline:speed or /Ob2.
/Od No code optimization (default for FL32 command). Specify /optimize:0 with /math_library:check, or specify /Od.
/Op Improved floating-point consistency. Specify /fltconsistency or /Op. Applies to ia32 systems only.
/Ox Full optimization with no error checking. Specify /optimize:4 with /math_library:fast and /assume:nodummy_aliases, or specify /Ox.
/Oxp Speed optimization and denoted inlining; error checking. Specify /optimize:4 with /assume:nodummy_aliases and (on ia32 systems) /math_library:check with /fltconsistency, or specify /Oxp.
/Zp[n] Packs structures on n-byte boundary (n is 1, 2, or 4). Specify /alignment[:keyword] or /Zp[n]. If you specify /Zp (omit n), structures are packed at 8-byte boundaries.
Language Extension Options
/4Lnn Line length for Fortran 90 fixed-form source (nn is 72, 80, or 132). Specify /extend_source[:nn] or /4Lnn.
/4Yb or /4Nb Enable/disable extended error checking. Specify /check[:keyword], /4Yb, or /4Nb.
/4Yd or /4Nd Warnings about undeclared variables. Specify /warn: [no]declarations, /4Yd or /4Nd.
/W0 Suppress warnings. Specify /nowarn or /W0.
/W1 Show warnings (default). Specify /warn:general or /W1.
/WX Interpret all warnings as errors. Specify /warn:(general,errors) or /WX.
Language Standard, Source Form, and Data Options
/4Ya or /4Na Makes all variables AUTOMATIC. Specify /[no]automatic, /[no]static, /4Ya, or /4Na.
/4Yaltparam /4Naltparam Use the alternate syntax for PARAMETER statements. Specify /[no]altparam, /4Yaltparam, or /4Naltparam.
/4Yf or /4Nf Use free-form source format. Specify /[no]free, /[no]fixed, /4Yf, or /4Nf.
/4I2 Change default KIND for INTEGER and LOGICAL declarations. Specify /integer_size:nn (nn is 16 for KIND=2) or /4I2.
/4R8 Change default KIND for REAL declarations. Specify /real_size:nn (nn is 32 for KIND=4) or /4R8.
/4Ys or /4Ns Strict Fortran 90 syntax. Specify /stand:f90, /warn:stderrors, /4Ys, or /4Ns.
Compiler Directive Options
/Dsymbol[=int] Define preprocessor symbol. Specify /define:symbol[=int] or Dsymbol[=int].
/4ccstring Treat lines with d or D in column 1 as comments. Specify /d_lines or /4ccd or /4ccD (partial support).
Build Control Options
/4Yportlib or /4Nportlib Specify /4Yportlib or /4Nportlib.
/Fd[file] Controls creation of compiler PDB files. Specify /[no]pdbfile[:file] or /Fd[file].
/Fe[file] Specifies file name of executable or DLL file. Specify /exe:file, /dll:file, or /Fe[file].
/Fm[file] Controls creation of link map file. Specify /map[:file] or /Fm[file].
/Fo[file] Controls creation of object file. Specify /object[:file] or /Fo[file].
/GNa Keep external names as is and treat source code identifiers as case sensitive. Specify /names:as_is or /GNa.
/GNl Make external names lowercase and ignore the case of source code identifiers. Specify /names:lowercase or /GNl.
/GNu Make external names uppercase and ignore the case of source code identifiers. Specify /names:uppercase or /GNu.
/Ipath Control search path for module or include files. Specify /[no]include[:path] or /Ipath.
/LD Create dynamic-link library. Specify /dll or /LD.
/MDLink against multithreaded DLL libraries. Specify /libs:dll with /threads or /MD.
/MDdLink against multithreaded DLL libraries. Specify /libs:dll with /threads and /dbglibs or specify /MDd.
/MDs Link against single threaded DLL libraries. Specify /libs:dll or /MDs.
/MGLink against libraries for windows applications. Specify /winapp or /MG.
/ML Link against single threaded static libraries. Specify /libs:static or /ML.
/MLd Link against single threaded static libraries. Specify /libs:static with /dbglibs or /MLd.
/MT Link against multithreaded static libraries. Specify /libs:static with /threads or /MT.
/MTd Link against multithreaded static libraries. Specify /libs:static with /threads and /dbglibs or specify /MTd.
/MW Link against QuickWin multidoc libraries. Specify /libs:qwin or /MW.
/MWs Link against QuickWin single doc libraries. Specify /libs:qwins or /MWs.
/Tffile Request that file be treated as a Fortran source file. Specify /source:filename or /Tffile.
/V"string" Place string in object file. Specify /bintext:string or /V"string".
/Z7 Request full debug information in object file. Specify /debug:full with /nopdbfile or /Z7.
/Zd Request minimal debug information. Specify /debug:minimal with /pdbfile or /Zd.
/Zi Request full debug information and create PDB file. Specify /debug:full with /pdbfile or /Zi.
/Zla Do not insert any library names in object file. Specify /nolibdir or /Zla.
/Zl Do not insert default library names in object file. Specify /libdir:noautomatic or /Zl.
/Zs Perform syntax check only (no object). Specify /syntax_only or /Zs.
/Zt Requests traceback information (run-time program counter to source file line correlation). Specify /traceback or /Zt.
/link [option] Begin specifying linker options. Specify /link [option].
Command-Line Specific Options
/?, /help Display command help. Specify /? or /help.
/nologo Prevent display of copyright information. Specify /nologo.