29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Compiler</strong> Command-line Options<br />

See also<br />

• --cpu=list on page 2-15<br />

• --cpu=name on page 2-15<br />

• --thumb on page 2-86<br />

• #pragma arm on page 4-50<br />

• Specifying the target processor or architecture on page 2-22 in the <strong>Compiler</strong> User<br />

<strong>Guide</strong>.<br />

2.1.6 --asm<br />

This option instructs the compiler to write a listing to a file of the disassembly of the<br />

machine code generated by the compiler.<br />

Object code is generated when this option is selected. The link step is also performed,<br />

unless the -c option is chosen.<br />

Note<br />

To produce a disassembly of the machine code generated by the compiler, without<br />

generating object code, select -S instead of --asm.<br />

Usage<br />

The action of --asm, and the full name of the disassembly file produced, depends on the<br />

combination of options used:<br />

Table 2-1 Compiling with the --asm option<br />

<strong>Compiler</strong> option<br />

--asm<br />

--asm -c<br />

Action<br />

Writes a listing to a file of the disassembly of the compiled source.<br />

The link step is also performed, unless the -c option is used.<br />

The disassembly is written to a text file whose name defaults to the<br />

name of the input file with the filename extension .s.<br />

As for --asm, except that the link step is not performed.<br />

2-8 Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0348A<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!