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

Note<br />

You do not have to specify --lower_rwpi, because this is the default.<br />

/fpic<br />

The main restrictions when compiling with /fpic are:<br />

• If you use --apcs=/fpic, the compiler exports only functions and<br />

data marked __declspec(dllexport).<br />

• If you use --apcs=/fpic and --no_hide_all on the same command<br />

line, the compiler ignores __declspec(dll*) and exports all extern<br />

variables and functions. The compiler disables auto-inlining for<br />

exported functions.<br />

• If you use --apcs=/fpic in GNU mode, you must also use<br />

--no_hide_all.<br />

See also<br />

• --[no_]hide_all on page 2-46<br />

• --[no_]lower_ropi on page 2-59<br />

• --[no_]lower_rwpi on page 2-59<br />

• __declspec(dllexport) on page 4-24<br />

• Writing reentrant and thread-safe code on page 2-4 in the Libraries <strong>Guide</strong><br />

• Veneer generation on page 3-20 in the Linker <strong>Guide</strong><br />

• Chapter 6 BPABI and System V Shared Libraries and Executables in the Linker<br />

<strong>Guide</strong><br />

• Procedure Call Standard for the <strong>ARM</strong> architecture in<br />

install_directory\Documentation\Specifications\....<br />

2.1.5 --arm<br />

This option configures the compiler to target the <strong>ARM</strong> instruction set.<br />

Note<br />

This option is not relevant for Thumb-only processors such as Cortex-M3.<br />

Default<br />

This is the default option for targets supporting the <strong>ARM</strong> instruction set.<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!