This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: vtbl layout


> > 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]