public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Ben Elliston <bje@redhat.com>
To: David Carney <dfcarney@net-itech.com>
Cc: cgen@sources.redhat.com
Subject: Re: cgen fundamentals
Date: Thu, 19 Dec 2002 14:12:00 -0000	[thread overview]
Message-ID: <m3isxpy7y4.fsf@scooby.brisbane.redhat.com> (raw)
In-Reply-To: <200212191433.48565.dfcarney@net-itech.com>

Hi David,

>>>>> "David" == David Carney <dfcarney@net-itech.com> writes:

  David> So, basically, I define my own .cpu file and add a new target
  David> to the binutils/opcodes Makefile (that'll use cgen in
  David> conjunction with my .cpu file), correct?  After I get cgen to
  David> properly generate files for binutils/opcodes, I'll need to
  David> write my own cpu-???.* and elf32-???.* files for the
  David> binutils/bfd, right?

Yes.  There is relatively little work to do here (a few hundred lines
of C code).  You can start with an existing port and clone it.  Once
you get it working, you'll understand it much better and can go back
and clean it up.

  David> What else will I need to do to get an assembler up and
  David> running?

You'll need to write the appropriate gas/config/* files (ie. port
GAS).  This is mostly simplified, with a few #defines to set and some
stub functions that mostly call into cgen's "binutils" runtime
functions in opcodes and gas.

I'd strongly recommend you follow a CGEN-based gas/binutils port
closely for guidance once you get to that stage.

Good luck!

Ben

  reply	other threads:[~2002-12-19 22:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-18 15:23 David Carney
2002-12-18 17:31 ` Ben Elliston
2002-12-19 11:34   ` David Carney
2002-12-19 14:12     ` Ben Elliston [this message]
2002-12-19  4:51 ` Frank Ch. Eigler

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=m3isxpy7y4.fsf@scooby.brisbane.redhat.com \
    --to=bje@redhat.com \
    --cc=cgen@sources.redhat.com \
    --cc=dfcarney@net-itech.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).