News for hackers. Stuff that matters.
Re:Compiler Design in C by ltta on Friday November 14, 2014 @11:01PM (#8610788)
If you are interested in a printed version of a great beginner's compiler book, I can highly recommend Andrew W. Appel's "Modern Compiler in C". There are also versions of the book written for SML or Java. I have read and partially implemented the C version and I really enjoyed the book, basic enough to follow yet full-featured enough to be useful.

The book starts with parsing (I prefer PEG or Pratt parsers for their simplicity (and tool independence) to be honest and skipped some of that chapter) but then goes into semantic analysis, type checking, code generation, optimization passes, even mentions basic type inference.

There is some code online at http://www.cs.princeton.edu/~appel/modern/c/ .

Re:Compiler Design in C by makeset on Monday November 17, 2014 @02:48AM (#8617250)
Great book, though I recommend the SML version over C or Java for a clearer illustration of the concepts in code. Viewed side by side, the SML code looks concise and obvious vs. the long and wordy C/Java code. It just seems to lend itself better to the task, in that some of the pattern matching burden is already handled by SML.
Re:Compiler Design in C by ltta on Thursday November 20, 2014 @09:55PM (#8639563)
Totally agree, ML-style languages are great for writing compilers.