asmattr

Specifies the contents of an assembly listing file.

IDE Equivalent

Windows: Output > Assembler Output

Linux: None

Mac OS X: None

Architectures

IA-32, Intel® 64, IA-64 architectures

Syntax

Linux and Mac OS X:

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

/noasmattr

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 and Mac OS X: None

Windows: /noasmattr

/asmattr:machine

Linux and Mac OS X: -fcode-asm

Windows: /FAc

/asmattr:source

Linux and Mac OS X: -fsource-asm

Windows: /FAs

/asmattr:all

Linux and Mac OS X: None

Windows: /FAcs

See Also