From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: ANN: Kickstarter for beginning work on a new open-source Compiler
Date: Sat, 22 Mar 2014 18:05:30 +0100
Date: 2014-03-22T18:05:30+01:00 [thread overview]
Message-ID: <87zjkib1ut.fsf@ludovic-brenta.org> (raw)
In-Reply-To: bp5rhlFavueU1@mid.individual.net
Niklas Holsti <niklas.holsti@tidorum.invalid> writes:
> On 14-03-22 15:59 , Dirk Craeynest wrote:
>> In article <bp5enaF87mnU1@mid.individual.net>,
>> Niklas Holsti <niklas.holsti@tidorum.invalid> wrote:
>>> The way you worded that suggests that Ada/Ed being an interpreter
>>> would have prevented using it to bootstrap GNAT, but of course that
>>> is not so. As long as *GNAT* was able to generate an executable,
>>> one could have used Ada/Ed to execute GNAT (albeit through
>>> interpretation) to compile the GNAT source code into an executable
>>> GNAT.
>>
>> You are right, of course. Thanks for correcting. (I don't know
>> where my mind was when I wrote that.)
>>
>> Dirk
>>
>> PS: It would've take "quite" some time to bootstrap, though...
>
> Certainly with the SETL version of Ada/Ed, yes. The C version might
> have been fast enough.
>
> But it occurs to me now that perhaps the interpreter nature of Ada/Ed
> was indeed an obstacle to GNAT bootstrapping, because, AIUI, only the
> front-end of GNAT is written in Ada; the rest is C/C++ from GCC. So
> Ada/Ed could execute only the front-end of GNAT. A bootstrap with
> Ada/Ed would have required a file-based (or piped) transfer of the
> intermediate output from the front-end to the back-end. I don't know
> if GCC already had some file-based intermediate representation; if
> not, it would have been extra work for the GNAT team to implement one.
In the olden days, temporary files were the default mechanism that GCC
front-ends used to send their output to the back-end, for memory
allocation reasons. There was a non-default option, "-pipe", that
allowed the front-end and the back-end to work in parallel.
Still, even the GNAT front-end has parts written in C and Ada/Ed would
not have been able to run them. But perhaps it would have been possible
to compile those C parts to object code, using a C compiler, and call
them from the interpreted Ada parts? Anyway, all of this is
theoretical...
--
Ludovic Brenta.
next prev parent reply other threads:[~2014-03-22 17:05 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 23:23 ANN: Kickstarter for beginning work on a new open-source Compiler Shark8
2014-03-19 9:06 ` Maciej Sobczak
2014-03-19 13:02 ` Peter Chapin
2014-03-19 13:48 ` Dmitry A. Kazakov
2014-03-19 22:11 ` Randy Brukardt
2014-03-20 14:56 ` Robert A Duff
2014-03-19 21:59 ` Randy Brukardt
2014-03-19 22:03 ` Randy Brukardt
2014-03-20 20:41 ` Shark8
2014-03-20 23:04 ` Randy Brukardt
2014-03-20 0:12 ` Luke A. Guest
2014-03-20 0:36 ` Peter Chapin
2014-03-20 0:52 ` Luke A. Guest
2014-03-20 12:10 ` Simon Wright
2014-03-20 12:45 ` Luke A. Guest
2014-03-20 13:22 ` Simon Wright
2014-03-20 14:13 ` Luke A. Guest
2014-03-20 14:17 ` J-P. Rosen
2014-03-21 2:13 ` Lucretia
2014-03-21 5:23 ` J-P. Rosen
2014-03-21 5:33 ` Lucretia
2014-03-21 6:43 ` J-P. Rosen
2014-03-21 22:51 ` Randy Brukardt
2014-03-22 1:13 ` Luke A. Guest
2014-03-22 6:27 ` Tero Koskinen
2014-03-22 7:02 ` J-P. Rosen
2014-03-24 20:50 ` Randy Brukardt
2014-03-24 22:42 ` Qun-Ying
2014-03-25 15:16 ` Tero Koskinen
2014-03-20 15:27 ` Robert A Duff
2014-03-20 21:06 ` Simon Wright
2014-03-21 16:07 ` Robert A Duff
2014-03-23 17:52 ` Simon Wright
2014-03-19 14:25 ` ANN: " Stephen Leake
2014-03-19 19:55 ` Shark8
2014-03-19 22:28 ` Randy Brukardt
2014-03-20 17:55 ` Shark8
2014-03-20 17:53 ` Dmitry A. Kazakov
2014-03-19 22:49 ` Brian Drummond
2014-03-20 10:21 ` Lucretia
2014-03-20 23:35 ` Stephen Leake
2014-03-21 8:17 ` Simon Wright
2014-03-23 21:14 ` erlo
2014-03-23 22:36 ` Simon Wright
2014-03-24 20:31 ` erlo
2014-03-19 21:04 ` Alan Browne
2014-03-19 22:22 ` Randy Brukardt
2014-03-20 20:30 ` Shark8
2014-03-21 2:18 ` Lucretia
2014-03-21 21:51 ` Shark8
2014-03-22 5:48 ` J-P. Rosen
2014-03-22 6:01 ` Jeffrey Carter
2014-03-24 21:03 ` Randy Brukardt
2014-03-22 9:14 ` Ludovic Brenta
2014-03-22 10:15 ` Pascal Obry
2014-03-22 10:25 ` Dirk Craeynest
2014-03-22 12:41 ` Niklas Holsti
2014-03-22 14:59 ` Dirk Craeynest
2014-03-22 16:20 ` Niklas Holsti
2014-03-22 17:05 ` Ludovic Brenta [this message]
2014-03-24 6:41 ` Shark8
2014-03-24 6:16 ` Luke A. Guest
2014-03-22 8:38 ` ANN: " Dmitry A. Kazakov
2014-03-22 19:28 ` Stephen Leake
2014-03-22 20:39 ` Shark8
2014-03-24 1:16 ` Stephen Leake
2014-03-24 6:40 ` Shark8
2014-03-25 20:04 ` Stephen Leake
2014-03-25 20:30 ` Dmitry A. Kazakov
2014-03-20 21:35 ` gautier_niouzes
2014-03-21 22:19 ` Shark8
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox