04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Compiler Command-line Options<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. Similarly, --cpu=Cortex-R4F implies<br />

--fpu=vfpv3_d16.<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 />

<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, unless the processor is a Thumb-only processor, for<br />

example Cortex-M3. In this case, --thumb is not required.<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 />

code includes instructions specific to <strong>ARM</strong>v6. Therefore, you must<br />

choose the lowest common denominator processor suited to your<br />

purpose.<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 2-33<br />

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!