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

• The supported --cpu values include all current <strong>ARM</strong> product<br />

names or architecture versions.<br />

Other <strong>ARM</strong> architecture-based processors, such as the Marvell<br />

Feroceon and the Intel XScale, are also supported.<br />

• If you specify a processor for the --cpu option, the compiled code<br />

is optimized for that processor. This enables the compiler to use<br />

specific coprocessors or instruction scheduling for optimum<br />

performance.<br />

Architectures<br />

• If you specify an architecture name for the --cpu option, the code<br />

is compiled to run on any processor supporting that architecture.<br />

For example, --cpu=5TE produces code that can be used by the<br />

<strong>ARM</strong>926EJ-S ® .<br />

FPU<br />

• Some specifications of --cpu imply an --fpu selection. For<br />

example, when compiling with the --arm option, --cpu=<strong>ARM</strong>1136JF-S<br />

implies --fpu=vfpv2.<br />

Note<br />

Any explicit FPU, set with --fpu on the command line, overrides an<br />

implicit FPU.<br />

• If no --fpu option is specified and no --cpu option is specified,<br />

--fpu=softvfp is used.<br />

• If an architecture v7 processor with an FPU is selected, the default<br />

FPU type is --fpu=vfpv3.<br />

<strong>ARM</strong>/Thumb<br />

• Specifying a processor or architecture that supports Thumb<br />

instructions, such as --cpu=<strong>ARM</strong>7TDMI, does not make the compiler<br />

generate Thumb code. It only enables features of the processor to<br />

be used, such as long multiply. Use the --thumb option to generate<br />

Thumb code.<br />

Note<br />

Specifying the target processor or architecture might make the<br />

object code generated by the compiler incompatible with other<br />

<strong>ARM</strong> processors. For example, code compiled for architecture<br />

<strong>ARM</strong>v6 might not run on an <strong>ARM</strong>920T processor, if the compiled<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!