Non-Confidential | ![]() | ARM DUI0472J | ||
| ||||
Home > Compiler Command-line Options > --asm |
Instructs the compiler to write a listing to a file of the disassembly of the machine code generated by the compiler.
Object code is generated when this option is selected. The link step is also performed,
unless the -c
option is chosen.
To produce a disassembly of the machine code generated by the compiler, without
generating object code, select -S
instead of --asm
.
The action of --asm
, and the full name of the disassembly file produced,
depends on the combination of options used:
Table 8-1 Compiling with the --asm option
Compiler option | Action |
---|---|
--asm |
Writes a listing to a file of the disassembly of the compiled source. The link step is also performed, unless the The disassembly is written to a text file whose name
defaults to the name of the input file with the filename extension
|
--asm -c |
As for |
--asm --interleave |
As for The disassembly is written to a text file
whose name defaults to the name of the input file with the filename extension
|
--asm --multifile |
As for |
--asm -o filename |
As for The disassembly is written to the file filename.s. The name of the object file must not have the filename extension |