comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Writing a Mac Ada compiler
Date: 8 Mar 1995 19:32:52 -0500
Date: 1995-03-08T19:32:52-05:00	[thread overview]
Message-ID: <3jlibk$p5g@gnat.cs.nyu.edu> (raw)
In-Reply-To: 3ji8rc$rj8@nic.umass.edu

Mike, at this stage, I am afraid your lack of familiarity with compiler
technology is showing. Writing a lexical analyzer and parser for Ada is
by comparison with the rest of the task simple, but even these very
simple tasks are by no means trivial, especially if you want to get
any kind of decent error messages.

As for the idea that the only remaining step is generating machine language,
I am afraid it seems that your cource on compilers gave a rather false
impression. The hard part of an Ada compiler is the semantic analysis.

Developing a full Ada compiler with a code generator is indeed a difficult
project. The estimates of person years you see are for people with extensive
compiler experience. I would estimate that the time to complete such a project
for people without this kind of experience would be essentially infinite. You
would learn something trying, but you would have no chance of succeeding. If
that seems like a challenge, fine, as I say you will certainly learn something
trying.

As for porting GCC, this is a task that is probably about one twentieth the
effort of writing a compiler, but that too expects you to have significant
experience with GCC and the technology. If you are starting from scratch
and know little about compilers and processor architectures, you have a lot
to learn before you can succeed in such a port.

Also, a port to the Mac assumes a thorough familiarity with System-7, which
in itself is not easy, the internals of this system are complex.

After all, if it were easy to get a GCC port for the MAC, it would have
been done some time ago. Note that getting a GNAT port once a GCC port is
a MUCH simpler task, probably no more than a couple of person months at most
to get a first attempt.




  parent reply	other threads:[~1995-03-09  0:32 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
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 [this message]
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