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

Syntax<br />

void __nop(void)<br />

See also<br />

• __sev on page 4-87<br />

• __schedule_barrier on page 4-85<br />

• __wfe on page 4-94<br />

• __wfi on page 4-94<br />

• __yield on page 4-95<br />

• NOP, SEV, WFE, WFI, and YIELD on page 4-139 in the Assembler <strong>Guide</strong><br />

• Generic intrinsics on page 3-3 in the <strong>Compiler</strong> User <strong>Guide</strong>.<br />

4.7.24 __pld<br />

This intrinsic inserts a data prefetch, for example PLD, into the instruction stream<br />

generated by the compiler. It enables you to signal to the memory system from your C<br />

or C++ program that a data load from an address is likely in the near future.<br />

Syntax<br />

void __pld(...)<br />

Where:<br />

... denotes any number of pointer or integer arguments specifying addresses<br />

of memory to prefetch.<br />

Restrictions<br />

If the target architecture does not support data prefetching, this intrinsic has no effect.<br />

Example<br />

extern int data1;<br />

extern int data2;<br />

volatile int* interrupt = (volatile int *)0x8000;<br />

volatile int* uart = (volatile int *)0x9000;<br />

void get(void)<br />

{<br />

__pld(data1, data2);<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!