David R. Hanson, Christopher W. Fraser
Amazon Price: $55.99
List Price: $69.99
Usually ships in 24 hours
By: Addison-Wesley Professional
Amazon Marketplace: 30
new & used starting at $23.93
|
Buy at Amazon.com
|
Browse similar items by category:
Subjects -> Computers & Internet -> Programming -> C -> General
Subjects -> Computers & Internet -> Programming -> Languages & Tools -> Compiler Design
Subjects -> Computers & Internet -> Programming -> Languages & Tools -> Compilers
Customer Reviews:
Total reviews: 7
Average rating: 3.5 of 5
Excellent 5 out of 5 stars.
12 of 13 people found this review helpful.
This book is definitely _not_ for beginners, but compilers are not supposed to be written by novices -- if there is rocket science in computers, it is compiler development. Crystal clear style and language make this book easy reading, and LCC is the best non-optimizing compiler I've seen (and believe me, I've seen many compiler sources): orthogonal, easy to follow design, well-thought data structures and overall architecture.I treat this book as a perfect collection of brilliant ideas, many of which you will find implemented in most commercial compilers.
Whether it helps to write your own compiler? -- sure. Are you thinking about IR (internal representation) that will be easy to create and, most important, walk through and manipulate? -- take a look how Fraser et al did it; they did it well. Think how to write a front end or code generator? -- it's all there. Sure, blind copying won't work -- optimizing compiler will call for way more sophisticated BURG-like technique (one of the best known code generation techniques by now), but, all in all, it'll be BURG-like, and it's in the book as well.
So, if you want to show your students (or learn yourself) how compilers should be written, you cannot find anything better than LCC accompanied by this book. Fraser's team did it right.
Editorial Review:
This new book examines the implementation of lcc, a production-quality, research-oriented retargetable compiler, designed for the ANSI C programming language. The author's innovative approach uses a line-by-line explanation of the code to demonstrate how lcc is built. Accompanying disk contains the full source code for the Icc compiler, the back ends, and the code-generator.