Re: Bootstraping compilers ?
- From: David Spencer <spencer@xxxxxxxxx>
- Date: Tue, 22 Apr 2008 16:05:51 +0000 (UTC)
pocm@xxxxxxxxxxx (Paulo Jorge de O. C. de Matos) writes:
Chris Hills <chris@xxxxxxxxxxxx> 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?
It's not too hard to write a C99 parser that will also parse C95;
almost all valid C95 code is also valid C99 code, and will generate
the same object code. The differences are relatively easy to deal
with either in the scanner or in analyzing the parse tree.
--
dhs spencer@xxxxxxxxx
.
- References:
- Bootstraping compilers ?
- From: Paulo Jorge de O. C. de Matos
- Re: Bootstraping compilers ?
- From: Chris Hills
- Re: Bootstraping compilers ?
- From: Paulo Jorge de O. C. de Matos
- Bootstraping compilers ?
- Prev by Date: Re: Code size as a function of source size
- Next by Date: Re: Bootstraping compilers ?
- Previous by thread: Re: Bootstraping compilers ?
- Next by thread: Re: Bootstraping compilers ?
- Index(es):
Relevant Pages
|
|