comp.lang.ada
 help / color / mirror / Atom feed
From: jmj@redstone.army.mil (Mark Johannes)
Subject: Re: Writing a Mac Ada compiler
Date: 7 Mar 1995 21:31:26 GMT
Date: 1995-03-07T21:31:26+00:00	[thread overview]
Message-ID: <3jijbe$q7b@michp1.redstone.army.mil> (raw)
In-Reply-To: 3ji8rc$rj8@nic.umass.edu

In article <3ji8rc$rj8@nic.umass.edu>, cons116@twain.oit.umass.edu (Mike White) writes:
>Arthur Evans Jr (evans@evans.pgh.pa.us) wrote:
>
>: If you have time on your hands and want to address this problem, port
>: GCC 2.6.3 to the Mac, and then bootstrap GNAT.  That's a much more
>: modest task and will result in a first class compiler.
>
Amen...

>Would it really be that much easier to port it? Have you seen the source
>code?  I haven't, so I am wondering how well designed/documented it is.
>I realize it's a pretty big task, but 10+ man-years?  O.K.  I'll admit
>it's probably not a one-man project, but if others were interested in
>working on such a project...
>

Yes you would have to learn something about the internals of GCC but
you would not have to write the large mass of code known as a compiler.
Unless I am horribly off base here, your effort would focus on providing
host configuration files and host specific code.  Since both the m68k and 
PowerPC families are well covered by GCC/GNAT.   

>  I mean seriously, I wrote a simple lexer and parser (both using Ada
>by the way) in my systems class both in a semester.  Both of these
>were easily extensible for large projects, and the grammar
>for Ada is widely available.  Beyond that, converting to machine code
>would seem my biggest problem, never having done mac or powermac assembly.
>Interfacing with mac system calls seems pretty basic since they are well
>defined.  I imagine one would convert the parameter conventions from Ada
>to the system via MacHeaders.

yes a lexer and parser may not be too tough for you to develop but.. you need
2 code generators, linkers, assemblers, debuggers, and Ada runtime support
to have a full environment.  Again your effort should be restricted to providing
MAC specific support. -- not reinventing the wheel.

I personally don't relish the idea of even using the machine_code package
much less implementing it.

>  Just some thoughts.  I need to do some more research obviously before
>making any attempt.  Anyone interested in participating on a joint effort,
>either working from scratch or doing a port?  Please reply here so that
>everyone interested can read it, myself included.
>
>mike white

And let's not forget this issue: support and maintenance.  The GNU tools
have a lot of users.  There is a large body of code shared between the C, Ada,
Pascal, and now Fortran users.  This significantly increases the user population
for the toolset.  Yes the port itself may only have a handful of users..but the 
code generator and other support components are shared and have who knows
how many users.  So the odds of finding bugs at a serious level are significantly
reduced.

Finally, a port of GNU Ada gives a lot more to the MAC community than an Ada
compiler.  It lays (all??) of the groundwork for ports of other GNU languages and
gets enough tools in place to allow ports of other GNU tools.  Wouldn't GNU C
work when/before GNAT did?  C++, Objective-C, Fortran, and Pascal would not
be far behind.   it starts as a trickle of tools and ends as the Hurd .. (sorry could
not resist).

I probably missed something... but you get the idea.

Joel Sherrill
jsherril@merlin.gcs.redstone.army.mil







  reply	other threads:[~1995-03-07 21:31 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-06 22:09 Writing a Mac Ada compiler Mike White
1995-03-07  2:04 ` Arthur Evans Jr
1995-03-07 18:32   ` Mike White
1995-03-07 21:31     ` Mark Johannes [this message]
1995-03-08 17:39       ` Mike White
1995-03-09  8:16         ` RonaldS60
1995-03-12 23:51           ` Vladimir Vukicevic
1995-03-17 23:04           ` Need complex Math Package James M. (Mike) Hill 575-6632 msgid MHIL
1995-03-19  0:24             ` Henry Baker
1995-03-19 15:25             ` Robert Dewar
1995-03-11 19:45         ` Writing a Mac Ada compiler Gary McKee
1995-03-12 21:13           ` Mike White
1995-03-09  0:32     ` Robert Dewar
1995-03-09 10:46       ` Richard Kenner
1995-03-09 13:42       ` Arthur Evans Jr
1995-03-10  6:25         ` Vladimir Vukicevic
1995-03-10 14:17           ` Arthur Evans Jr
1995-03-10 15:30             ` Richard Kenner
1995-03-09 19:25       ` Mike White
1995-03-07 18:37   ` David Weller
1995-03-07 13:46 ` Theodore E. Dennison
1995-03-07 17:17   ` Laurent Gasser
1995-03-08 15:57   ` Robert Dewar
1995-03-08  1:08 ` Robert Dewar
1995-03-08  2:09 ` Tucker Taft
1995-03-10  4:05 ` Michael Feldman
1995-03-13  4:55   ` Fraser Wilson
1995-03-15 15:19     ` Theodore Dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox