Newsgroups: comp.robotics
Path: brunix!uunet!pmafire!news.dell.com!swrinde!sdd.hp.com!usc!sol.ctr.columbia.edu!spool.mu.edu!umn.edu!lynx!nmsu.edu!opus!ted
From: ted@nmsu.edu (Ted Dunning)
Subject: Re: Is there a public domain  6811  C cross-compiler for Unix machines?
In-Reply-To: jonathan@vort.cuc.ab.ca's message of Sat, 19 Sep 1992 19:33:53 GMT
Message-ID: <TED.92Sep22110254@lole.nmsu.edu>
Sender: usenet@nmsu.edu
Reply-To: ted@nmsu.edu
Organization: Computing Research Lab
References: <1992Sep17.225801.23006@cs.ubc.ca> <1992Sep19.193353.2687@vort.cuc.ab.ca>
Date: Tue, 22 Sep 1992 18:02:54 GMT
Lines: 45


In article <1992Sep19.193353.2687@vort.cuc.ab.ca> jonathan@vort.cuc.ab.ca (Jonathan Levine) writes:

   Try the Motorola Freeware Bulletin Board at 512-891-3733 (at least that was
   the number last time I used it).  I think you'll find the source for a C
   for the HC11, and I'm pretty sure that it has the source for an assembler.



the c that is posted there is a port of small-c.  it was definitely
written in the dark ages and contains a number of non-portable
constructs.  i decided after several hours of hacking that it just
wasn't worth the trouble.

the assemblers in the motorola freeware bulletin board are useable
although they have some disturbing bugs (which seem asymptomatic for
the moment).

for the miniboard, programming in assembler is not terribly painful
because you can't write a very long program anyway.  the lack of a
simulator or much of any debugger hurts a bit.  if anybody wants to
write a simulator, i can help them a bit by providing a list of all
possible op-codes.


in another week or so, i should be done with a very early version of a
simple compiler written in prolog which targets the 6811.  it
currently supports a syntax reminiscent of modula2 (easily adapted to
be more c like), and when first released will NOT do graceful error
detection.  it does include a simple (but effective) peephole
optimizer which should help it generate ok, but not good code.  things
like jumps to jumps, and some redundant loads will be cleaned up.

i will probably distribute this code with a simple prolog system (such
as binprolog) so that others can modify the code.  i will also provide
an executable compiled under quintus prolog.  if there is anybody who
would like to help, they should speak up.

this compiler will produce output in format acceptable to as11, but
may also include an assembler as a side effect of the optimizer.
--

REALLY, instead of hyping low impact soles, I think what we need
are more low impact souls.
					Greg Jahn
