Vcall offsets
Mark Mitchell
mark at codesourcery.com
Wed Apr 19 00:05:17 UTC 2000
>>>>> "Jim" == Jim Dehnert <dehnert at baalbek.engr.sgi.com> writes:
>> 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.)
Jim> The way I view this is that we produce things in a normal
Jim> top-down declaration order, and then invert the whole list so
Jim> that the "first" entry is closest to the vptr address. That
Jim> would put f after g in memory order.
Good -- that's what I was proposing too. I just couldn't really make
"from the inside out" mean that to me. So, I think all we need is an
editorial clarification.
Thanks,
--
Mark Mitchell mark at codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the cxx-abi-dev
mailing list