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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

2.1.86 -o filename<br />

This option specifies the name of the output file. The full name of the output file<br />

produced depends on the combination of options used, as described in Table 2-4 and<br />

Table 2-5.<br />

Syntax<br />

If you specify a -o option, the compiler names the output file according to the<br />

conventions of Table 2-4.<br />

Table 2-4 Compiling with the -o option<br />

<strong>Compiler</strong> option Action Usage notes<br />

-o- writes output to the standard output stream filename is -.<br />

-S is assumed unless<br />

-E is specified.<br />

-o filename produces an executable image with name<br />

filename<br />

-c -o filename produces an object file with name filename<br />

-S -o filename produces an assembly language file with<br />

name filename<br />

-E -o filename produces a file containing preprocessor<br />

output with name filename<br />

If you do not specify a -o option, the compiler names the output file according to the<br />

conventions of Table 2-5.<br />

Table 2-5 Compiling without the -o option<br />

<strong>Compiler</strong> option Action Usage notes<br />

-c produces an object file whose name<br />

defaults to the name of the input file with<br />

the filename extension .o<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!