Re: self-hosting, was Writing A Plain English Compiler

Richard Hable <portempa@aon.at>
Tue, 11 Nov 2014 19:50:02 +0100

          From comp.compilers

Related articles
Writing A Plain English Compiler gerry.rzeppa@pobox.com (Gerry Rzeppa) (2014-11-04)
Re: Writing A Plain English Compiler Pidgeot18@verizon.net (=?UTF-8?Q?Joshua_Cranmer_=f0=9f=90=a7?=) (2014-11-05)
Re: Writing A Plain English Compiler gerry.rzeppa@pobox.com (Gerry Rzeppa) (2014-11-06)
Re: Writing A Plain English Compiler Pidgeot18@verizon.net (=?UTF-8?Q?Joshua_Cranmer_=f0=9f=90=a7?=) (2014-11-07)
Re: Writing A Plain English Compiler gerry.rzeppa@pobox.com (Gerry Rzeppa) (2014-11-08)
Re: Writing A Plain English Compiler bc@freeuk.com (BartC) (2014-11-09)
Re: self-hosting, was Writing A Plain English Compiler portempa@aon.at (Richard Hable) (2014-11-11)
Re: self-hosting, was Writing A Plain English Compiler bc@freeuk.com (BartC) (2014-11-11)
Re: self-hosting, was Writing A Plain English Compiler anton@mips.complang.tuwien.ac.at (2014-11-12)
Re: self-hosting, was Writing A Plain English Compiler anton@mips.complang.tuwien.ac.at (2014-11-12)
Re: self-hosting, was Writing A Plain English Compiler bc@freeuk.com (BartC) (2014-11-12)
| List of all articles for this month |

From: Richard Hable <portempa@aon.at>
Newsgroups: comp.compilers
Date: Tue, 11 Nov 2014 19:50:02 +0100
Organization: Compilers Central
References: 14-11-004 14-11-005 14-11-007 14-11-014 14-11-016 14-11-020
Keywords: debug, practice
Posted-Date: 11 Nov 2014 14:44:52 EST

On 11/09/14 02:16, BartC wrote:


> Self-hosting (implementing a language in itself) is a nice touch, but
> I don't think it's that important, perhaps because people are
> realising that the best language to implement a compiler in, is not
> necessarily the language that is being compiled. Unless of course you
> are trying to use a single language for everything.)


I think, the main advantage of self-hosting is that it can be used as
one big unit test: you can compile the compiler with itself, use the
resulting compiler to compile itself again, and check if the result is
exactly the same.


Richard



Post a followup to this message

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