
高级编译器设计与实现
Advanced compiler design and implementation
Steven S. Muchnick · 初版 1997 年
13人推荐
22位读者提及
25次提及
为什么值得读
- 全面深入聚焦于程序分析与编译器优化
- 包含专门针对内存层次结构优化的章节
- 能带来扎实丰富的编译器进阶学习体验
Hacker News 上怎么说
正在加载完整评论……

Advanced compiler design and implementation
Steven S. Muchnick · 初版 1997 年
正在加载完整评论……
……最喜欢的语言。((尤其是 Lua 和 lcc 编译器(它甚至有一本书专门解释其设计),极具教学价值)。(6) 如果你对优化动真格的,推荐 Steve Muchnick 的书《Advanced Compiler Design and Implementation》(高级编译器设计与实现)。这些书我都有,从中收获了海量的知识和乐趣。没错,是得花不少工夫,但这是一趟令人着迷的旅程。尽情享受吧。更新:如果你想深入类型系统……
…favorite language. ((Lua and the lcc compiler (it even has a book explaining its design) in particular, are very educational). (6) If you are REALLY serious about optimization, Steve Muchnick's book, Advanced Compiler Design and Implementation. I have all these books and have derived an incredible amount of learning and joy from them. yes it is a bit of work, but it is fascinating journey. Enjoy. EDIT: If you want to go deep into type systems…
……构建我自己的)。挺有意思的是他推荐了《Engineering a Compiler》;我不怀疑这是一本好书,但我对它不熟。我书单上的第三本(虽然承认有点高深)是 Muchnick 的《Advanced Compiler Design and Implementation》。
…building mine). Interesting that he recommends "Engineering a Compiler"; I don't doubt that it's a good book but I don't know it. The third on my list (though admittedly a bit advanced) was Muchnick's "Advanced Compiler Design and Implementation".
……比起旧版我更推荐这本,不过我还想推荐另外两本教材:1) Morgan 的《Building an Optimizing Compiler》——有人很喜欢这种写作风格,也有人讨厌,但内容非常扎实。2) Muchnick 的《Advanced Compiler Design and Implementation》——神作。如果你真想搞懂优化,必读。
…here over the old one, but I'd also recommend two other texts: 1) Morgan, Building an Optimizing Compiler -- some people love the writing style. Others hate it, but the material is solid. 2) Muchnick, Advanced Compiler Design and Implementation -- Great book. Must read if you're serious about optimizations.
……你不在乎的内容,而在你关心的内容上又着墨不足。(比如它花了大量篇幅讲 parser generator,而对分析和优化几乎只字不提)。更新:一本很好的后续进阶读物是 Muchnick 的《Advanced Compiler Design and Implementation》
…you won't care about and not enough on the stuff you do care about. (e.g. it focuses a lot on parser generators and says almost nothing about analysis and optimization) EDIT: A good followup text is "Advanced Compiler Design and Implementation" by Muchnick
编译器入门的好书是《Engineering a Compiler》。它比大多数入门书更侧重优化,而且全书都在讲 SSA。 如果你想全面深入 SSA 优化,有一本叫《Static Single Assignment Book》的书,由一整批编译器作者合写。虽然还没写完,但干货非常多。 你可以在这里找到:http://ssabook.gforge.inria.fr/latest/boo
The good intro to compilers is Engineering a Compiler. It focuse more on optimization then most intro books, and its all SSA. If you want to go all in on SSA optimization, there is a book called Static Single Assignment Book and its written by a hole list of compiler writers. Its not finished but there is still a lot of information. You can find it here: http://ssabook.gforge.inria.fr/latest/boo
……垃圾回收(GC)。有针对 C 和 Java 的版本,但书里的 ML 代码读起来容易得多。如果你想要一本关于编译器优化和 IR 设计的(排版略丑的)百科全书,Steven Muchnick 的《Advanced Compiler Design and Implementation》棒极了。此外在函数式方面,SPJ 的书(https://www.microsoft.com/en-us/research/publication/the-imp...)非常优秀。虽然还没写完,《Write You a Haskell》也相当有意思……
…garbage collection. There are versions for C and Java, but ML is much easier to read in a book. If you want a (slightly ugly) encyclopedia of compiler optimisations and IR designs, then Steven Muchnick's Advanced compiler design and implementation is great. Also, on the functional front SPJ's book (https://www.microsoft.com/en-us/research/publication/the-imp...) is really good. While unfinished, Write You a Haskell is also a really interesting…