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

Create successful ePaper yourself

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

<strong>Using</strong> <strong>the</strong> Inline and Embedded Assemblers of <strong>the</strong> <strong>ARM</strong> <strong>Compiler</strong><br />

7.45 __vcall_offsetof_vfunc(D, f)<br />

Where D is a class and f is a virtual function defined in D, or a base class of D.<br />

The function returns <strong>the</strong> offset of <strong>the</strong> slot in <strong>the</strong> vtable that holds <strong>the</strong> pointer to <strong>the</strong> virtual<br />

function, f.<br />

If __vcall_offsetof_vfunc(D, f) is used when f is not a virtual member function it returns an<br />

arbitrary value designed to cause an assembly error if used.<br />

7.45.1 See also<br />

Tasks<br />

• Calling a virtual member function on page 7-55.<br />

Concepts<br />

• <strong>Compiler</strong>-supported keywords <strong>for</strong> calling class member functions in embedded assembler<br />

on page 7-47.<br />

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

ID061811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!