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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Compiler</strong>-specific Features<br />

}<br />

while (!*interrupt);<br />

*uart = data1;<br />

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

// trigger uart as soon as interrupt occurs<br />

See also<br />

• __pli<br />

• PLD and PLI on page 4-24 in the Assembler <strong>Guide</strong>.<br />

4.7.25 __pli<br />

This intrinsic inserts an instruction prefetch, for example PLI, 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 an instruction load from an address is likely in the near future.<br />

Syntax<br />

void __pli(...)<br />

Where:<br />

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

of instructions to prefetch.<br />

Restrictions<br />

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

effect.<br />

See also<br />

• __pld on page 4-79<br />

• PLD and PLI on page 4-24 in the Assembler <strong>Guide</strong>.<br />

4.7.26 __qadd<br />

This intrinsic inserts a QADD instruction or an equivalent code sequence into the<br />

instruction stream generated by the compiler. It enables you to obtain the saturating add<br />

of two integers from within your C or C++ code.<br />

Syntax<br />

int __qadd(int val1, int val2)<br />

4-80 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!