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: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
  • Subject: Re: Vcall offsets
  • From: dehnert@xxxxxxxxxxxxxxxxxxxx (Jim Dehnert)
  • Date: Tue, 18 Apr 2000 16:20:26 -0700 (PDT)

> 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@xxxxxxx
				(650)933-4272