This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: vtbl layout
- To: egcs at egcs dot cygnus dot com
- Subject: Re: vtbl layout
- From: adriang at campbellsoft dot com
- Date: Tue, 5 Jan 1999 10:54:12 -0600
> > So, is there anywhere apart from the code itself where this layout is
> > documented?
>
> See my privious posts in the last month about this. Roughly, for
> thunks they are just an array of pointer to functions, fairly plain,
> fairly simple. There are two slots in the front, one for rtti and one
> for adjustment to the front of the complete object.
>
I did my research and found out the above details. One thing I couldn't
completely figure out is how is the 'adjustment to the front of the complete
object' ever used. Can anyone post a code fragment whose generated assembler
actually uses the first slot of the vtable. Or can anyone point me in the right
direction so that I can come up with the code myself?
So that there are no confusions, I'm talking about thunked vtables.
thanx.