This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Q] Class instance layout details
- From: Ian Lance Taylor <ian at airs dot com>
- To: Bharadwaj Yadavalli <bharadwaj dot yadavalli at hp dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 15 Jul 2005 14:02:38 -0700
- Subject: Re: [Q] Class instance layout details
- References: <20050715194123.GB219910@marburg.zko.dec.com>
Bharadwaj Yadavalli <bharadwaj.yadavalli@hp.com> writes:
> Can someone please point me to a place where I can get information
> about how gcc (2.96 and later) lays out class instances? In other
> words if I examine the contents of an object pointer, is there a
> document that specifies how the contents of the memory with relation
> to the pointer correspond to the members, the vtable etc.
Newer versions of C++ more or less follow the Itanium C++ ABI:
http://www.codesourcery.com/cxx-abi/abi.html
That started somewhere in gcc 3.x, though I don't know exactly when.
I don't know if there any documentation on object layout in 2.96.
Ian