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

4.7 Instruction intrinsics<br />

This section describes instruction intrinsics for realizing <strong>ARM</strong> machine language<br />

instructions from C or C++ code. Table 4-7 summarizes the available intrinsics.<br />

Table 4-7 Instruction intrinsics supported by the <strong>ARM</strong> compiler<br />

Instruction intrinsics<br />

__breakpoint __ldrt __schedule_barrier<br />

__cdp __memory_changed __semihost<br />

__clrex __nop __sev<br />

__clz __pld __sqrt<br />

__current_pc __pldw __sqrtf<br />

__current_sp __pli __ssat<br />

__disable_fiq __promise __strex<br />

__disable_irq __qadd __strexd<br />

__enable_fiq __qdbl __strt<br />

__enable_irq __qsub __swp<br />

__fabs __rbit __usat<br />

__fabsf __rev __wfe<br />

__force_stores __return_address __wfi<br />

__ldrex __ror __yield<br />

__ldrexd<br />

See also GNU builtin functions on page 4-195.<br />

4.7.1 __breakpoint<br />

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

compiler. It enables you to include a breakpoint instruction in your C or C++ code.<br />

Syntax<br />

void __breakpoint(int val)<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!