Vcall offsets

Jim Dehnert dehnert at baalbek.engr.sgi.com
Tue Apr 18 23:20:26 UTC 2000


> I was actually trying to clarify something different here.  If `f'
> appears before `g' in the class declaration, does the vcall offset for
> `f' appear before, or after, `g' in the vtable layout?  (Assuming
> neither is overridden, so we don't get the complications being
> discussed above.)

The way I view this is that we produce things in a normal top-down
declaration order, and then invert the whole list so that the "first"
entry is closest to the vptr address.  That would put f after g in
memory order.

Jim


-	    Jim Dehnert		dehnert at sgi.com
				(650)933-4272




More information about the cxx-abi-dev mailing list