Re: compiler design

"C" <>
6 Mar 2006 02:24:45 -0500

          From comp.compilers

Related articles
compiler desinging (pradeep) (2006-03-05)
Re: compiler design (C) (2006-03-06)
Compiler Design (1998-01-06)
| List of all articles for this month |

From: "C" <>
Newsgroups: comp.compilers
Date: 6 Mar 2006 02:24:45 -0500
References: 06-03-010
Keywords: books, comment
Posted-Date: 06 Mar 2006 02:24:44 EST

pradeep wrote:
> hello all,
> i am trying to desgin a compiler which will support full binary
> expression evaluation along with decision control system.. i have
> studied Compiler Desgining by Aho, Ullman,
> can somebody suggest me sometext book where i can find
> some source code help ?

There's a book called "Crafting a Compiler in C" and (I think) a later
version named "Crafting a Compiler in C++", which, though dated,
contains may of the patterns you'll need. Hennessy & Patterson's
"Computer Architecture - A Quantitative Approach" may also come in
handy, even though it does not directly deal with compiler
development. A quick search should reveal places to obtain them.

Once you're familiar with the terminology, the net is full
of examples of other peoples toy languages many of which
are rich sources of ideas (though the quailty of these ideas
may vary).

I'd recommend looking up Flex (Lex) and Bison (Yacc) as
they may help too. I use them to code prototype grammers
before coding those grammers manually -- but they may, in
themselves, be good enough for your purposes.

[Crafting a Compiler is quite old but still a nice tutorial on
building a real compiler with yacc and C. -John]

Post a followup to this message

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