asmattr

Specifies the contents of an assembly listing file.

IDE Equivalent

Windows: Output > Assembler Output

Linux: None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux: None
Windows:  /asmattr:keyword
/noasmattr

Arguments

keyword     Specifies the contents of the assembly listing file. Possible values are:
  none Produces no assembly listing.
  machine Produces an assembly listing with machine code.
  source Produces an assembly listing with source code.
  all Produces an assembly listing with machine code and source code.

Default

OFF No assembly listing is produced.

Description

This option specifies what information, in addition to the assembly code, should be generated in the assembly listing file.

To use this option, you must also specify option /asmfile, which causes an assembly listing to be generated.

Option

Description

/asmattr:none Produces no assembly listing. This is the same as specifying /noasmattr.
/asmattr:machine Produces an assembly listing with machine code.
The assembly listing file shows the hex machine instructions at the beginning of each line of assembly code. The file cannot be assembled; the filename is the name of the source file with an extension of .cod.
/asmattr:source Produces an assembly listing with source code.
The assembly listing file shows the source code as interspersed comments.

Note that if you use alternate option -fsource-asm, you must also specify the -S option.

/asmattr:all Produces an assembly listing with machine code and source code.
The assembly listing file shows the source code as interspersed comments and shows the hex machine instructions at the beginning of each line of assembly code. This file cannot be assembled.

Alternate Options

/asmattr:none Linux: None
Windows: /noasmattr
/asmattr:machine Linux: -fcode-asm
Windows: /FAc
/asmattr:source Linux: -fsource-asm
Windows: /FAs
/asmattr:all  Linux: None
Windows: /FAcs

See Also

asmfile compiler option