29.10.2014 Views

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

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>Using</strong> <strong>the</strong> Inline and Embedded Assemblers of <strong>the</strong> <strong>ARM</strong> <strong>Compiler</strong><br />

7.25 Behavior of BL and SVC without optional lists in C and C++ code<br />

The BL and SVC instructions of <strong>the</strong> inline assembler have <strong>the</strong> following <strong>for</strong>mat:<br />

SVC{cond} svc_num, {input_param_list}, {output_value_list}, {corrupt_reg_list}<br />

BL{cond} function, {input_param_list}, {output_value_list}, {corrupt_reg_list}<br />

If you do not specify any lists, <strong>the</strong>n:<br />

• r0-r3 are used as input parameters<br />

• r0 is used <strong>for</strong> <strong>the</strong> output value and can be corrupted<br />

• r0-r3, r14, and <strong>the</strong> PSR can be corrupted.<br />

7.25.1 See also<br />

Concepts<br />

• Inline assembler function calls and branches in C and C++ code on page 7-29<br />

• <strong>Compiler</strong> support <strong>for</strong> inline assembly language on page 7-4.<br />

<strong>ARM</strong> DUI 0375C Copyright © 2007-2008, 2011 <strong>ARM</strong>. All rights reserved. 7-30<br />

ID061811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!