Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Michael Elizabeth Chastain <mec@shout.net>
Cc: gdb@sources.redhat.com, jimb@redhat.com, vinschen@redhat.com
Subject: Re: [RFC] Supporting alternative ABIs
Date: Fri, 22 Aug 2003 18:16:00 -0000	[thread overview]
Message-ID: <3F465DF7.3080702@redhat.com> (raw)
In-Reply-To: <200308221541.h7MFfmQC013143@duracef.shout.net>

> What a coincidence!   I have been looking at the code which
> does this on other platforms.  There is code to handle
> alternate function calling conventions in arm-tdep.c, m68hc11-tdep.c,
> mips-tdep.c, and sh-tdep.c.

In the case of ARM (Arm vs Thumb), sh (sh vs sh64) and MIPS (MIPS vs 
MIPS16) the tdep file has effectively encountered two different 
architecture variants (ISA) folded into a single architecture.  For what 
corinna is looking at, the ABI and not the ISA is being changed.

Roughly speeking there is the relationships:

	ISA N->M ABI

e.g., for MIPS, MIPS16 has only one ABI (two?) while MIPS32 and MIPS64 
to a certain extend share the -o32 -64 -o64 and -n64 ABIs.

The current architecture is flat.  Refecting the original design it 
contains everything.  With everything multi-arch (not yet strictly true 
unfortunatly) a more oo model can probably be developed.  All the 
inferior functioin call stuff moved to a separate object - more like the 
frame code.

Andrew


  reply	other threads:[~2003-08-22 18:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-22 15:42 Michael Elizabeth Chastain
2003-08-22 18:16 ` Andrew Cagney [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-08-22  8:41 Corinna Vinschen
2003-08-22 12:57 ` Daniel Jacobowitz
2003-08-22 21:11 ` Mark Kettenis
2003-09-11 15:58   ` Andrew Cagney
2003-09-13 19:58     ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F465DF7.3080702@redhat.com \
    --to=ac131313@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=jimb@redhat.com \
    --cc=mec@shout.net \
    --cc=vinschen@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox