Re: Language used to write compilers

vbdis@aol.com (VBDis)
30 Dec 2004 01:01:13 -0500

          From comp.compilers

Related articles
Language used to write compilers joe_hesse@actcx.com (Joe H.) (2004-12-29)
Re: Language used to write compilers dido@imperium.ph (Rafael 'Dido' Sevilla) (2004-12-30)
Re: Language used to write compilers nmm1@cus.cam.ac.uk (2004-12-30)
Re: Language used to write compilers s.bosscher@student.tudelft.nl (stevenb) (2004-12-30)
Re: Language used to write compilers vbdis@aol.com (2004-12-30)
Re: Language used to write compilers dido@imperium.ph (Rafael 'Dido' Sevilla) (2004-12-30)
Re: Language used to write compilers nick.roberts@acm.org (Nick Roberts) (2004-12-30)
Re: Language used to write compilers samiam@moorecad.com (Scott Moore) (2004-12-31)
Re: Language used to write compilers Martin.Ward@durham.ac.uk (Martin Ward) (2004-12-31)
Re: Language used to write compilers nmm1@cus.cam.ac.uk (2004-12-31)
Re: Language used to write compilers nmm1@cus.cam.ac.uk (2004-12-31)
[6 later articles]
| List of all articles for this month |
From: vbdis@aol.com (VBDis)
Newsgroups: comp.compilers
Date: 30 Dec 2004 01:01:13 -0500
Organization: AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com
References: 04-12-148
Keywords: practice
Posted-Date: 30 Dec 2004 01:01:13 EST

"Joe H." <joe_hesse@actcx.com> schreibt:


>I always thought that compilers were usually written in C/C++.


From the time before the invention of C it's a good tradition to write
an compiler in its own language. The first (stripped) version of an
new compiler can be written in any available language, then that
compiler can compile itself in the full featured version
(bootstrapping).


>Question - what languages are used to write compilers?


There exist(ed) several languages for the implementation of
compilers. The question is whether it's worth the time to teach the
use of such a language, in addition to teaching compiler construction
itself.


> My world is Unix/Linux - should I wait until a course is offered
>using C/C++?


IMO you learn more about compilers in general when you write an
compiler in and for other languages. Why would anybody ever write an
compiler other than for C/C++, if that language were sufficient for
all programming tasks? And why then would anybody want to implement
yet another C compiler, instead of using an existing one?


Take the chance to discover other worlds - else you'll never know what
you may be missing! ;-)


DoDi


Post a followup to this message

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