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

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

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

Compiler Command-line Options<br />

Each instance of qualifier must be one of:<br />

/interwork, /nointerwork<br />

/ropi, /noropi<br />

/rwpi, /norwpi<br />

/fpic, /nofpic<br />

Generates code with or without <strong>ARM</strong>/Thumb interworking<br />

support. The default is /nointerwork, except for <strong>ARM</strong>v6 and later<br />

where the default is /interwork.<br />

Enables or disables the generation of Read-Only<br />

Position-Independent (ROPI) code. The default is /noropi.<br />

/[no]pic is an alias for /[no]ropi.<br />

Enables or disables the generation of Read/Write<br />

Position-Independent (RWPI) code. The default is /norwpi.<br />

/[no]pid is an alias for /[no]rwpi.<br />

Enables or disables the generation of read-only<br />

position-independent code where relative address references are<br />

independent of the location where your program is loaded.<br />

Note<br />

You can alternatively specify multiple qualifiers. For example,<br />

--apcs=/nointerwork/noropi/norwpi is equivalent to --apcs=/nointerwork<br />

--apcs=noropi/norwpi.<br />

Default<br />

If you do not specify an --apcs option, the compiler assumes<br />

--apcs=/nointerwork/noropi/norwpi/nofpic.<br />

Usage<br />

/interwork, /nointerwork<br />

By default, code is generated:<br />

• without interworking support, that is /nointerwork, unless<br />

you specify a --cpu option that corresponds to architecture<br />

<strong>ARM</strong>v5T or later<br />

• with interworking support, that is /interwork, on <strong>ARM</strong>v5T<br />

and later. Interworking happens automatically on <strong>ARM</strong>v5T<br />

and later <strong>ARM</strong> architectures.<br />

/ropi, /noropi<br />

If you select the /ropi qualifier to generate ROPI code, the<br />

compiler:<br />

• addresses read-only code and data PC-relative<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!