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 />

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

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

--asm --interleave<br />

--asm --multifile<br />

--asm -o filename<br />

Action<br />

As for --asm, except that the source code is interleaved with the<br />

disassembly.<br />

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

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

As for --asm, except that the compiler produces empty object files<br />

for the files merged into the main file.<br />

As for --asm, except that the object file is named filename.<br />

The disassembly is written to the file filename.s.<br />

The name of the object file must not have the filename extension .s.<br />

If the filename extension of the object file is .s, the disassembly is<br />

written over the top of the object file. This might lead to<br />

unpredictable results.<br />

See also<br />

• -c on page 2-12<br />

• --interleave on page 2-50<br />

• --[no_]multifile on page 2-63<br />

• -o filename on page 2-65<br />

• -S on page 2-80<br />

• File naming conventions on page 2-11 in the <strong>Compiler</strong> User <strong>Guide</strong>.<br />

2.1.7 --[no_]autoinline<br />

This option enables or disables automatic inlining of functions.<br />

The compiler automatically inlines functions where it is sensible to do so. The -Ospace<br />

and -Otime options, together with some other factors such as function size, influence<br />

how the compiler automatically inlines functions.<br />

Selecting -Otime, in combination with various other factors, increases the likelihood that<br />

functions are inlined.<br />

Default<br />

For optimization levels -O0 and -O1, the default is --no_autoinline.<br />

For optimization levels -O2 and -O3, the default is --autoinline.<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!