
C 现代编译器实现
Modern compiler implementation in C
Andrew W. Appel、Maia Ginsburg · 初版 1998 年
8人推荐
12位读者提及
13次提及
为什么值得读
- 精简前端分析,给编译器后端核心环节留足篇幅
- 相比龙书更适合作为动手实现编译器的入门起点
- 引导读者完整经历编写小型编译器的工程全流程
Hacker News 上怎么说
正在加载完整评论……

Modern compiler implementation in C
Andrew W. Appel、Maia Ginsburg · 初版 1998 年
正在加载完整评论……
……教材分销商那里相当于 30 美元左右。对于任何对编译器构建其他书籍感兴趣的人,我推荐这些:- Torben Mogensen 的《The Basics of Compiler Design》- Andrew Appel 的《Modern Compiler Implementation in C》(也有 ML 和 Java 版本)- Grune、Bal 等人的《Modern Compiler Design》。在这个领域,龙书(Dragon Book)显然名气大到声名狼藉,但我建议至少翻两本……
…textbook distributor for the equivalent of about $30. For anyone interested in other books on compiler construction, I would recommend these: - "The Basics of Compiler Design" by Torben Mogensen - "Modern Compiler Implementation in C" by Andrew Appel (ML and Java versions available too) - "Modern Compiler Design" by Grune, Bal et al. The Dragon Book is obviously infamous for this topic, but I would recommend covering at least two…
你是在找写编译器的资料,还是仅仅关于语言设计的?如果是前者,我建议看 Andrew Appel 的《Modern Compiler Implementation in (C|Java|ML)》,以及事实上的标杆“龙书”(《Compilers, Principles, Techniques and Tools》)。
Are you looking for information on writing compilers as well, or just language design? If the former, I suggest Modern Compiler Implementation in (C|Java|ML) by Andrew Appel, as well as the de facto `Dragon Book' (Compilers, Principles, Techniques and Tools).
硬啃了一堆编译器书之后,我必须提一下 Andrew A. Appel 的《Modern Compiler Implementation in C》:http://www.amazon.co.uk/dp/0521607655,确实出类拔萃。至于 LALR parser 和 DFA scanner 之类的东西,我觉得原版的龙书 http://www.amazon.co.uk/dp/B00EKYURHS……
After grinding through a bunch of compiler books I have to mention "Modern Compiler Implementation in C - Andrew A. Appel": http://www.amazon.co.uk/dp/0521607655 as one that stands out. For LALR Parsers and DFA scanners and the like, I found the original Dragon Book http://www.amazon.co.uk/dp/B00EKYURHS…
我不确定我是否赞同推荐龙书。我觉得一个更好的切入点可能是 Appel 的《Modern Compiler Implementation in C/Java/ML》。
I’m not sure I’d agree with the Dragon Book recommendation. I think a better starting point might be Appel’s Modern Compiler Implementation in C/Java/ML.
不如试试虎书(Tiger Book,又名《Modern compiler implementation in C》,如果你更喜欢,也有 Java 或 ML 版本)。它的平衡性更好:对 lexing(词法分析)和 parsing(语法分析)的处理更加切中要害,留出更多篇幅来更全面地探讨……
Try the Tiger Book instead (a.k.a. 'Modern compiler implementation in C', or there are Java or ML versions if those are more to your taste). It has a better balance: more to the point treatment of lexing and parsing, leaving more space for a more comprehensive treatment of…
Modern Compiler Implementation in C
Modern Compiler Implementation in C