[ale] OT: C++ -> 6800 assembly language translator

Michael H. Warfield mhw at wittsend.com
Tue Feb 6 14:05:51 EST 2001


On Tue, Feb 06, 2001 at 09:51:43AM -0500, Jeff Hubbs wrote:
> Actually, if you understood the 68000 and the 6800 instruction sets pretty
> well, wouldn't it be fairly straightforward (albeit tedious) to write a
> 68000->6800 machine language translator?  If you did, you could use gcc to
> kick out 68000 code and just pipe the output to your translator.

	Probably not.  You would end up with all sorts of really UGLY
stuff like relative jumps and status flags that just don't map.  You
would probably end up having to emulate a lot of stuff that the 6800
just was never designed for.  It's a limited 16 bit processor.  You would
also have to deal with nasty things like address sizes and range limits
(6800 is limited to 64K of flat address space with no MMU or segmentation)
as well as intrinsic register sizes.

	It would not translate cleanly...

> - Jeff

> > -----Original Message-----
> > From: Jeff Hubbs 
> > Sent: Tuesday, February 06, 2001 9:35 AM
> > To: 30ae+fdd4.e6e4__ at mark.datasys.net; cmattern at mediaone.net;
> > ale at ale.org
> > Subject: RE: [ale] OT: C++ -> 6800 assembly language translator
> > 
> > 
> > To split the hair finer, "cross-compiler" would be the 
> > preferred term, IMHO.
> > 
> > - Jeff
> > 
> > > -----Original Message-----
> > > From: 30ae+fdd4.e6e4__ at mark.datasys.net
> > > [mailto:30ae+fdd4.e6e4__ at mark.datasys.net]
> > > Sent: Tuesday, February 06, 2001 8:43 AM
> > > To: cmattern at mediaone.net; ale at ale.org
> > > Subject: Re: [ale] OT: C++ -> 6800 assembly language translator
> > > 
> > > 
> > > Such a translator is usually called a compiler. GCC 
> > > (http://gcc.gnu.org)
> > > has a C++ front-end, and can generate code for the M680x0 
> > CPUs, though
> > > I'm not familiar with the 6800. 
> > > 
> > > Compiler design in itself is a great field of Computer Science.
> > > 
> > > Chuck wrote:
> > > : My oldest son has come up with a (another) question I can't 
> > > answer, anyone got 
> > > : a clue on this one?
> > > : ------- Forwarded Message
> > > : 
> > > : Date: Mon, 05 Feb 2001 18:41:08 -0700 (MST)
> > > : From: Richard R Greco <rrg7 at cet.nau.edu>
> > > : Subject: Re: Phx and stuff
> > > : To: Chuck Mattern <cmattern at mediaone.net>
> > > : 
> > > : Hey out of curiosity you wouldn't happen to know of a place 
> > > I could look
> > > : to find a C++ to 6800 assembly language translator would you??
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" 
> > > in message body.
> > > 
> > --
> > To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" 
> > in message body.
> > 
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.

-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw at WittsEnd.com
  (The Mad Wizard)      |  (678) 463-0932   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list