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

while (!*interrupt);<br />

*uart = data1; // trigger uart as soon as interrupt occurs<br />

*(uart+1) = data2;<br />

}<br />

See also<br />

• __pldw<br />

• __pli on page 4-91<br />

• PLD, PLDW, and PLI on page 4-25 in the Assembler Guide.<br />

4.7.20 __pldw<br />

This intrinsic inserts a PLDW instruction into the instruction stream generated by the<br />

compiler. It enables you to signal to the memory system from your C or C++ program<br />

that a data load from an address with an intention to write is likely in the near future.<br />

Syntax<br />

void __pldw(...)<br />

Where:<br />

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

of memory to prefetch.<br />

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

Non-Confidential,<br />

ID101213

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

Saved successfully!

Ooh no, something went wrong!