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.40 <strong>Compiler</strong>-supported keywords <strong>for</strong> calling class member functions in embedded<br />

assembler<br />

The following embedded assembler builtins facilitate <strong>the</strong> calling of virtual and nonvirtual<br />

member functions from an __asm function. Those beginning with __mcall can be used <strong>for</strong> both<br />

virtual and nonvirtual functions. Those beginning with __vcall can be used only with virtual<br />

functions. They do not particularly help in calling static member functions.<br />

• __mcall_is_virtual(D, f) on page 7-48<br />

• __mcall_is_in_vbase(D, f) on page 7-49<br />

• __mcall_offsetof_vbase(D, f) on page 7-50<br />

• __mcall_this_offset(D, f) on page 7-51<br />

• __vcall_offsetof_vfunc(D, f) on page 7-52<br />

• Calling nonstatic member functions in embedded assembler on page 7-53<br />

• Restrictions on embedded assembly language functions in C and C++ code on page 7-40.<br />

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

ID061811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!