Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vcall offsets


  • To: dehnert@xxxxxxx, dehnert@xxxxxxxxxxxxxxxxxxxx
  • Subject: Re: Vcall offsets
  • From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
  • Date: Tue, 18 Apr 2000 17:05:17 -0700

>>>>> "Jim" == Jim Dehnert <dehnert@xxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
CodeSourcery, LLC               http://www.codesourcery.com