public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: dj@ctron.com (DJ Delorie)
To: meissner@osf.org
Cc: artk@congruent.com, ian@cygnus.com, gas2@cygnus.com, harmon@metronet.com
Subject: Re: [harmon@metronet.com: GNU GAS i386 16 bit]
Date: Thu, 25 Aug 1994 08:03:00 -0000	[thread overview]
Message-ID: <9408251504.AA28263@delorie> (raw)
In-Reply-To: <9408251352.AA19936@pasta.osf.org>

> Adding a new object format can certainly be done.  It depends on what
> trickyness is in OMF.  If it doesn't require things that aren't
> already in BFD (such as shared library support), it would be
> straigtforward.  That's what BFD is for in the first place.  I also
> seem to recall there are gas ports to OMF floating around (pre-BFD).
> You might ask DJ Delorie (dj@ctron.com), if he isn't on the mailing
> list for thoughts, since he is closer to the MSDOS world than most of
> us UNIX-oids/GNU-oids are.

The OMF format is different from any Unix format, but EMX (gcc for
os/2) produces 32-bit OMF so it *can* be done.  I don't know what the
changes entail, though.

The biggest difference when dealing ith DOS OMF and 16-bit assembler
is something that's come up before - segments.  DOS has lots of them,
and gcc et al just don't support them very well.  With OMF and BFD,
you could treat segments like sections, so you could probably get
something that worked without having to re-engineer the BFD interface
itself.

Making gas support intel mixed assembler is a different story.  Little
of the i386 code will be reusable, since 16-bit opcodes have different
formats than the 32-bit ones (might as well be a whole new CPU).
Also, you'll need to keep track of operand and address size overrides,
which gas does for the i386 but will need to be extended.  Also, the
concept of default segments and use directives will be a new
experience for gas.

I think someone who has implemented support for a processor from
scratch should be able to add 16/32 OMF support without undue
difficulty, though.  Teaching gcc about it is a different story,
however.

gnuoids?



      parent reply	other threads:[~1994-08-25  8:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-08-24 21:16 Ian Lance Taylor
1994-08-25  5:56 ` Michael Meissner
1994-08-25  6:28 ` Arthur Kreitman
1994-08-25  6:52   ` Michael Meissner
1994-08-25  7:53     ` Arthur Kreitman
1994-08-25  8:03     ` DJ Delorie [this message]

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=9408251504.AA28263@delorie \
    --to=dj@ctron.com \
    --cc=artk@congruent.com \
    --cc=gas2@cygnus.com \
    --cc=harmon@metronet.com \
    --cc=ian@cygnus.com \
    --cc=meissner@osf.org \
    /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).