/FA, /Fa   (Listing File)

OverviewHow Do ICompiler Options

This option creates a listing file. The listing file always contains assembly code. The optional arguments control the generation of source code and machine code and the extension of the listing file as follows:

Command Line Project Settings Listing Contents;
Filename Extension
/FA Assembly-Only Listing Assembly code;  .ASM
/FAc Assembly With Machine Code Machine and assembly code;  .COD
/FAs Assembly With Source Code Source and assembly code;  .ASM
/FAcs Assembly, Machine Code, and Source Machine, source, and assembly code;  .COD
/Fafilename Listing File Name Use /Fa to specify a directory and/or filename for the selected type of listing file. By default, the base name of the listing file is the base name of the source file.

To find these options in the development environment, click Settings on the Project menu. Then click the C/C++ tab, and click Listing Files in the Category box. See the Listing File Type drop-down box.

Example

In the following example, CL produces a combined source and machine-code listing called HELLO.COD.

CL /FAcs HELLO.CPP