public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Gcc-4.0 vtable layout on IA64
@ 2005-07-18 17:36 Martin Kittel
  0 siblings, 0 replies; only message in thread
From: Martin Kittel @ 2005-07-18 17:36 UTC (permalink / raw)
  To: gcc-help

Hi,

While trying to get the MaxDB sources compiled with gcc 4.0 on an IA64 
machine I stumbled over the following comment describing the vtable layout:

  *  gcc 3.1 on ia64 uses new c++ abi (without runtime type info):
  *
  *  pInterface -> 0  -----------        0  -----------------------
  *                  ! virt.Meth ! ------->| gp0        | Method 0 |
  *                   -----------          |------------|          |
  *                  !     :     !       8 | offset0    |          |
  *                                         ------------+----------|
  *                                     16 | gp1        | Method 1 |
  *                                         ------------|          |
  *                                     24 | offset1    |          |
  *                                         ------------+----------|
  *                                        |      :     |    :     |
  *                                               :
  *                                        |      :     |    :     |
  *                                         ------------+----------|
  *                             16*(n-1)+0 | gp n       | Method n |
  *                                         ------------|          |
  *                             16*(n-1)+8 | offset n   |          |
  *                                         ------------+----------

I was wondering if this is still correct with gcc 4.0 or whether there 
the formula should be 8*(n-1) to access method n (as that seems to 
correspond to what you have on i386)?


Thanks for any help,

Martin.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-18 17:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-18 17:36 Gcc-4.0 vtable layout on IA64 Martin Kittel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).