Vtables

Jim Dehnert dehnert at baalbek.engr.sgi.com
Sun Feb 20 07:51:57 UTC 2000


> From: Mark Mitchell <mark at codesourcery.com>
> 
>   The ABI appears to specify that the secondary vtables immediately
> follow the primary vtables for a class.  However, the order is
> unclear:
> 
> 7.The secondary vtables are last. They are laid out in the same
> order used for the bases themselves in the object. 
> 
>   That's not well-defined since two bases may lay at the same offset.
> Let's just say `in the order given by a left-to-right depth-first walk
> of the inheritance graph', assuming that there's not some deep reason
> behind the current wording.
> 
>   Agreed?

Yes.  What the language means is the order in which allocation occurs
in the algorithm, not in memory, which is what the document defines as
inheritance graph order.  I'll try to clarify this.

Jim

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




More information about the cxx-abi-dev mailing list