From: | "Joe Schmo" <askmeforit@myisp.com> |
Newsgroups: | comp.compilers |
Date: | Sat, 21 Apr 2012 02:53:46 -0600 |
Organization: | Aioe.org NNTP Server |
References: | 12-04-019 |
Keywords: | books |
Posted-Date: | 21 Apr 2012 17:13:40 EDT |
<compilers@is-not-my.name> wrote in message news:12-04-019@comp.compilers...
> Guys, I'm having a bear of a time finding a good practical language
> and OS agnostic text on writing a compiler. I'm weak in math and not
> interested in the theoretical details. I want to understand the hows
> and whys of compiler writing. Everything I've found is either
> gobbledygook equations or "let's use C/C++/Java on UNIX" or things
> that are so trivial and focused they don't explain general cases and
> can't be extended to anything useful.
The first few chapters of "Programming Language Pragmatics" by Michael Scott
for a good and fast overview. (The rest of the book is quite good also if
you are designing your own language).
"Writing Compilers & Interpreter - An Applied Approach" by Ronald Mak.
Creates a Pascal compiler in C which emits x86 assembly language.
The Fischer and LeBlanc authored book is good for the implementation
details. I.e., their particular take on an implementation anyway. It sticks
in my mind that this is a very good book (but I somehow lost the mini review
I made for myself about it) that I will obtain again in the future.
I think the whole "write a grammar and feed it through a tool to produce a
lexer and parser" thing is something to avoid, at least at first (I'm
avoiding it like the plague, FWIW). Surely that paradigm is part of the
reason that programming languages are so complex.
[COBOL managed to have arcane syntax and hundreds of reserved words before
there were any compiler tools at all. That's not it. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.