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>-specific Features<br />

Table 4-16 Named registers available on <strong>ARM</strong> architecture-based processors<br />

Register<br />

r13 or sp<br />

r14 or lr<br />

r15 or pc<br />

Character string for __asm<br />

"r13" or "sp"<br />

"r14" or "lr"<br />

"r15" or "pc".<br />

On targets with a VFP, the registers of Table 4-17 are also available for<br />

use with named register variables.<br />

Table 4-17 Named registers available on targets with a VFP<br />

Register<br />

Character string for __asm<br />

FPSID "fpsid"<br />

FPSCR "fpscr"<br />

FPEXC "fpexc"<br />

Example<br />

void foo(void)<br />

{<br />

register int foo __asm("r0");<br />

}<br />

In this example, foo is declared as a named register variable for the register r0.<br />

See also<br />

• Named register variables on page 3-9 in the <strong>Compiler</strong> User <strong>Guide</strong>.<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!