This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Class layout accross multiple architectures.
- To: ncm at nospam dot cantrip dot org (Nathan Myers)
- Subject: Re: Class layout accross multiple architectures.
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Sun, 16 Aug 98 8:16:47 PDT
- Cc: egcs at cygnus dot com
> For example, instances of a class with virtual functions will contain a
> "vptr", a pointer to a "vtable", represented according to the conventions
> for a struct member of a pointer type on that platform. The vtable will
> look like an array of structs laid out conventionally for that platform.
You would also have to worry about layout in the case of virtual base
classes and multiple inheritance (though it is not extremely complex).