Re: Bootstraping compilers ?

pocm@soton.ac.uk (Paulo Jorge de O. C. de Matos)
Tue, 22 Apr 2008 00:07:22 +0100

          From comp.compilers

Related articles
[4 earlier articles]
Re: Bootstraping compilers ? marcov@stack.nl (Marco van de Voort) (2008-04-18)
Re: Bootstraping compilers ? marcov@stack.nl (Marco van de Voort) (2008-04-18)
Re: Bootstraping compilers ? lindahl@pbm.com (Greg Lindahl) (2008-04-18)
Re: Bootstraping compilers ? cdb@nullstone.com (Christopher Glaeser) (2008-04-19)
Re: Bootstraping compilers ? torbenm@app-4.diku.dk (2008-04-21)
Re: Bootstraping compilers ? DrDiettrich1@aol.com (Hans-Peter Diettrich) (2008-04-21)
Re: Bootstraping compilers ? pocm@soton.ac.uk (2008-04-22)
Re: Bootstraping compilers ? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2008-04-21)
Re: Bootstraping compilers ? spencer@panix.com (David Spencer) (2008-04-22)
Re: Bootstraping compilers ? DrDiettrich1@aol.com (Hans-Peter Diettrich) (2008-04-22)
Re: Bootstraping compilers ? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2008-04-23)
| List of all articles for this month |

From: pocm@soton.ac.uk (Paulo Jorge de O. C. de Matos)
Newsgroups: comp.compilers
Date: Tue, 22 Apr 2008 00:07:22 +0100
Organization: Aioe.org NNTP Server
References: 08-04-059 08-04-066
Keywords: C, practice
Posted-Date: 22 Apr 2008 10:20:13 EDT

Chris Hills <chris@phaedsys.org> writes:
> However once you have written a C99 compiler (using C95) you can then
> write a C99 compiler and compile it with itself (after the first
> compilation using the C99 compiler written in C95)


Thanks you all for your replies. Chris, this is making me
confused. Does your quote mean that I would have to write two
compilers? One compiler in C95 and one in C99? So the first would
accept C99, the second in C99 is then fed into the first?


If writing one compiler means loads of work, although the second if
probably much easier it would still means lots of hours... or is there
something I am missing?


Cheers,
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
[I expect he meant that you'd have to adjust your source code to be C99
compliant before feeding it to your C99 compiler. The two versions of
C aren't very different, so I wouldn't think it would be a large effort.
-John]



Post a followup to this message

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