
编译器构造
Engineering a compiler
Keith D. Cooper · 初版 2003 年
40人推荐
71位读者提及
91次提及
为什么值得读
- 对编译器宏观框架的梳理尤为清晰
- 相比经典龙书更易于读者建立整体认知
- 受到读者极高评价的编译器经典教程
“处理器、环境以及系统约束的多样化扩散,将编译器技术推向了更为广泛的应用场景,改变了编译器及编译器编写者的角色。执行速度不再是评判编译代码的唯一标准。如今,代码的评判标准可能包括体积有多小、功耗有多低、压缩率有多高,或是产生多少次缺页中断(page faults)。在这一不断变化的环境中,构建一个成功的编译器依赖于编译器编写者平衡并融合算法、工程洞见以及缜密规划的能力。当今的
Hacker News 上怎么说
正在加载完整评论……
……关于龙书在 21 世纪还有没有用,我在 HN 上已经看过太多次争论了,所以就不评论它到底有没有用了。(感兴趣的话可以搜搜)不过,感兴趣的话,我强烈推荐 Cooper 和 Torczon 的《编译器工程》(Engineering a Compiler),或者 Appel 的《ML 中的现代编译器实现》(Modern Compiler Implementation in ML)。这三本我都读过,龙书我只推荐给对这个主题特别感兴趣的人。
…debate over the utility of the dragon book in the 21st century so many times on HN that I'm not going to comment on it's usefulness. (Search if interested) But, for those interested, I highly recommend Engineering a Compiler by Cooper and Torczon OR Modern Compiler Implementation in ML by Appel. I've read all three and would only recommend the dragon book to someone very interested in the subject.
……就是 CFG 中的控制流边)。关于这个主题,有一套(相对)好上手的材料,见:http://www.cs.rice.edu/~keith/512/2011/Lectures。我也强烈推荐 Cooper 和 Torczon 的《编译器工程》(Engineering a Compiler)(第 2 版)。在一个连一句英文都写不通顺的 CS 研究者遍地的世界里,Keith Cooper 和 Linda Torczon 的著作堪称清晰文风的典范。(他们在 Rice 的实验室正是 Cliff Click……
…simply control flow edges in the CFG). For a (relatively) approachable set of materials on the subject, see: http://www.cs.rice.edu/~keith/512/2011/Lectures. I also highly recommend Cooper & Torczon's "Engineering a Compiler" (2d Ed.) In a world of CS researchers that can't write an English sentence to save their lives, Keith Cooper and Linda Torczon's work is a paragon of clear prose. (Their lab at Rice is where Cliff Click…
我书架上的这几本书很有帮助:《编译原理》(第二版)[0],《编译器工程》(Engineering a Compiler,第二版)[1],《深入理解计算机系统》(CSAPP,第三版)[2] [0]https://www.amazon.com/Compilers-Principles-Techniques-Alfre... [1]https://www.amazon.com/Engineering-Compiler-Second-Keith-Coo... [2]https://www.amazon.com/Computer-Systems-Programmers-Perspect...
The following that I have on my bookshelf have helped: Compilers Second Edition [0] Engineering a Compiler, Second Edition [1] Computer Systems: A Programmer's Perspective (3rd Edition) [2] [0]https://www.amazon.com/Compilers-Principles-Techniques-Alfre... [1]https://www.amazon.com/Engineering-Compiler-Second-Keith-Coo... [2]https://www.amazon.com/Computer-Systems-Programmers-Perspect...
Cooper 和 Torczon 的《编译器工程》(Engineering a Compiler)。如今龙书已经不是最好的书了,它过于关注你根本不会在意的内容,而对你在意的内容又讲得不够。(比如它花了很多篇幅讲解析器……
"Engineering a Compiler" by Cooper and Torczon The Dragon Book is not the best book these days, it focuses too much on stuff you won't care about and not enough on the stuff you do care about. (e.g. it focuses a lot on parser…
我最喜欢的三本关于编译器的书(排名不分先后)是:* 《编译器工程》(Engineering a Compiler):https://www.amazon.com/Engineering-Compiler-Second-Keith-Coo... * 《现代编译原理:ML语言实现》(Modern Compiler Implementation in ML):https://www.cs.princeton.edu/~appel/modern/ml/ * 《使用续延编译》(Compiling with Continuations):https://www.amazon.com/Compiling-Continuations-Andrew-W-Appe...
My three favorite books on compilers (in no particular order) are: * Engineering a Compiler: https://www.amazon.com/Engineering-Compiler-Second-Keith-Coo... * Modern Compiler Implementation in ML: https://www.cs.princeton.edu/~appel/modern/ml/ * Compiling with Continuations: https://www.amazon.com/Compiling-Continuations-Andrew-W-Appe...
编译器书:我会从 Keith Cooper 和 Linda Torczon 的《编译器工程》(Engineering a Compiler)开始。http://craftinginterpreters.com/ 也是一本相当不错、面向编程的入门书,可以配合着一起看。想了解更多关于分析和编译器……
Compilers books: I'd start with "Engineering a Compiler" by Keith Cooper and Linda Torczon. http://craftinginterpreters.com/ is also a pretty great, programming-oriented intro, which may be good to work through alongside. For more on the analysis & compiler…