Live data from Hacker News

Compiler Design in C

holub.com

1–10 of 46 posts

Re: Compiler Design in C

#2
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

#4
Great book! I have spent hours reading it multiple times soaking all information I could.

It was one of the first books about compiler design that I got hold of, back when Internet access was only available at the university.

Re: Compiler Design in C

#5
post #3

How I love these 90s style book covers, color palettes :)

I agree, there were more interesting/amusing cover illustrations than the abstract, generic ones on the bulk of compiler and computing books today. That's how the Dragon Book got its name too.

Related article: http://www.globalnerdy.com/2007/09/14/reimagining-programmin...

Re: Compiler Design in C

#6
His book the C Companion [1]

Really helped me get a deep understanding of C. Sadly, I haven't touched C for such a long that I've forgotten most of it. I highly recommended it for anyone who has a basic knowledge of C and wants to get deeper.

[1] http://www.amazon.com/C-Companion-Allen-I-Holub/dp/013109786...

Re: Compiler Design in C

#7

His book the C Companion [1] Really helped me get a deep understanding of C. Sadly, I haven't touched C for such a long that I've forgotten most of it. I highly recommended it for anyone who has a basic knowledge of C and wants to get deeper. [1] http://www.amazon.com/C-Companion-Allen-I-Holub/dp/013109786...

[deleted]

Re: Compiler Design in C

#8
post #3

How I love these 90s style book covers, color palettes :)

I agree, there were more interesting/amusing cover illustrations than the abstract, generic ones on the bulk of compiler and computing books today. That's how the Dragon Book got its name too. Related article: http://www.globalnerdy.com/2007/09/14/reimagining-programmin...

Speaking about covers, Forth Programmer's Handbook comes to mind :)

http://www.amazon.com/Forth-Programmers-Handbook-3rd-Edition...

Post reply on HN