Re: Self compiling compiler

federation2005@netzero.com
Wed, 25 May 2016 16:41:17 -0700 (PDT)

          From comp.compilers

Related articles
[4 earlier articles]
Re: Self compiling compiler rivers@dignus.com (Thomas David Rivers) (2016-03-31)
Re: Self compiling compiler alexfrunews@gmail.com (2016-03-31)
Re: Self compiling compiler jkallup@web.de (Jens Kallup) (2016-03-31)
Re: Self compiling compiler 545-066-4921@kylheku.com (Kaz Kylheku) (2016-04-03)
Re: Self compiling compiler ershc123@nyc.rr.com (ERSHC) (2016-04-02)
Re: Self compiling compiler nmh@t3x.org (Nils M Holm) (2016-04-04)
Re: Self compiling compiler federation2005@netzero.com (2016-05-25)
Re: Self compiling compiler federation2005@netzero.com (2016-05-28)
Re: Self compiling compiler rockbrentwood@gmail.com (2016-08-22)
| List of all articles for this month |
From: federation2005@netzero.com
Newsgroups: comp.compilers
Date: Wed, 25 May 2016 16:41:17 -0700 (PDT)
Organization: Compilers Central
References: 16-03-013
Injection-Info: miucha.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="58861"; mail-complaints-to="abuse@iecc.com"
Keywords: C, history
Posted-Date: 25 May 2016 20:07:13 EDT

On Thursday, March 31, 2016 at 9:47:59 AM UTC-5, ERSHC wrote:
> I'd like to teach an undergraduate class based on the Thompson hack
> (see Ken Thompson's Turing Award lecture). I don't want to write a
> "whole" compiler, so need a compiler that can compile itself,
> preferably one that runs under Linux and is reasonably small. Can
> anyone point me to something more appropriate than gcc (which is far
> from small)?


cfront In a Picard voice: "make it work and compile right Riker."


If you want to REALLY take this to extreme: use the February 1985 printout
PDFs http://www.softwarepreservation.org/projects/c_plus_plus


The other versions are there too; but the dialect is old (the for loop
variables have different scoping, the new and delete operators are not
recognized and the libraries are not compatible if you try to use gcc
with this). There are scratch files in old versions there or elsewhere
in C and an empty scratch directory in version 3 and maybe 2 in the
archive.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.