| Syntax: | Default: |
| /Fn[+|-] | /Fn- |
| /Fn[dir][name] |
Use /Fn to produce, name, and direct an assembler listing file that has the source code and machine code as comments. The listing file will be name.cod and will be placed in directory dir.
The compiler produces a listing file for each source file that follows the option on the command line. The name you provide applies to all source files specified after this option, until another /Fn[name] is encountered.
If you do not specify a name or directory, then the listing takes the same name as the source file, with the extension .cod, and is put in the current directory.
If the directory you specify is not valid, the compiler does not generate a listing file: it generates a warning message and the option does not take effect.
Note: The listing is not guaranteed to compile.
By default, the compiler does not create an assembler and machine code listing file.
This option is explicitly set to /Fn- when any of the following options are in effect:
/Fc+, /P+, /Pc+, /Pd-, /Pe.
![]()
Summary of Compiler Options
Compiler Option Dependencies
Incompatible Compiler Options