Please consider that this intrusive sentence could instead be proclaiming that you help sponsor this research.

Home > Programming > Tools > Visual C++ > Compiler > Options

CL /FA

The /FA option asks that an assembly-language listing be created for each source file.

Syntax

/FA[styles]

The optional styles follow immediately within the one command-line token. They may be any number, including none, of the following case-sensitive characters: a, b, c and s. Anything else causes warning D4015.

Relations

The /FA option overrides earlier instances of itself (and is overridden by later instances). Only the last instance has its styles validated. Additionally, /FA

This option passes to the back-end C/C++ compiler (C2) only. If the option is given explicitly, CL adds the a style in front of the given styles, if any: thus, -FAa[styles].

Behaviour

A listing file is to be produced for each source file. The /FA option does not explicitly name the listing files, this being left to the /Fa option. The contribution of /FA to the naming of listing files is to set the default extension, which is “.asm” ordinarily, but “.cod” if c is among the styles.

As far as concerns the style of listing as generated by C2, the a style is anyway assumed, such that its specification is redundant. The main effects of the other styles are:

b show byte count for instruction as first comment after mnemonic
c show offset and opcode bytes before instruction mnemonic
s follow line numbers with reproduction from source code

This page was created on 27th October 2005. The last significant modification was on 7th April 2006.

Copyright © 2005-2006. Geoff Chappell. All rights reserved.

Please consider that this intrusive sentence could instead be proclaiming that you help sponsor this research.

Home > Programming > Tools > Visual C++ > Compiler > Options

[Home][Programming Samples][Application Notes][Security Notes][Editorial][Consultation][Contacts]