《编译器构造》封面

编译器构造

Compiler construction

Niklaus Wirth · 初版 1996 年

30人推荐
40位读者提及
81次提及

为什么值得读

  • 仅百余页篇幅便兼顾实践动手与核心理论
  • 展现作者追求极简实用的语言与编译器哲学
  • 循序渐进示范具体编程语言的完整编译实现

Hacker News 上怎么说

  • 粗略扫了一眼,这东西看起来真的很不错;那些抱怨它晦涩难懂的人纯属站不住脚。能读懂它所需的背景知识是 Wirth 的《Compiler Construction》(编译器构造)http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf 加上优先级爬升(precedence climbing)http://en.wikipedia.org/wiki/Operator-precedence_parser#Prec...

    On a first skim, this looks really nice; complaints that it's unreadable are unfounded. The background that makes it readable are Wirth's Compiler Construction http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf plus precedence climbing http://en.wikipedia.org/wiki/Operator-precedence_parser#Prec...

  • 尼克劳斯·维尔特(Niklaus Wirth)写的《Compiler Construction》[1] 也是一本相当不错的书。它既有 Crenshaw 那本书的实操感,又简明扼要、不失深度地介绍了理论。整本书也就 100 多页长。……

    'Compiler Construction' by Niklaus Wirth[1] is a pretty good book too. It's got the hands-on feel of Crenshaw's book with a quick but, not too superficial, introduction to theory. The book is little more than 100 pages long.…

  • Oberon 的实现向来很难找,感谢分享!如果你(不是指 pjmlp)对编译器或者 Oberon 感兴趣,我强烈推荐 Wirth 的书《Compiler Construction》,里面一步步讲解了它的实现,以及他在语言和实现方面的思考方式。编辑:我是不是把这门语言和他同时设计的操作系统给搞混了?

    It's always hard to find implementations of Oberon, so thanks for sharing! If you (not pjmlp) are into compilers or Oberon I highly recommend Wirth's book, Compiler Construction, that walks through its implementation and his way of thinking about languages and implementations. Edit: am I getting the language mixed up with the operating system he also designed?

  • ……实际上并不适合编译器新手去理解底层到底是怎么回事。依我看,新手想学习编译器极简主义的艺术,还不如去看尼克劳斯·维尔特写的那本编译器构造的书(PDF 可以从他的主页下载);通俗易懂,而且 Pascal 也是一门很值得学的语言(愚见,我是在 90 年代中期学的,一点都没浪费时间)。这样做还有很多好处……

    …not actually well suited for anybody new to compilers to understand what's going on. AFAICT, newcomers are much better off learning the art of simplicity w.r.t. compilers from niklaus wirth's book on compiler construction (the pdf can be downloaded from his homepage); it is an easy read, and pascal is also a worthwhile language to learn (IMHO, i sure did in the mid-90s and it was no waste of time). there is also much benefit…

  • Oberon/Modula-2 家族恰好是我最喜欢的语言之一。它是最容易实现的语言之一,而且亚马逊上刚好能买到便宜的 Modula-2 编译器书籍。Wirth 自己写的那本《Compiler Construction》是免费的,虽然简直就是“精炼”的代名词。我更喜欢 Julian R. Ullmann 的《Compiling in Modula-2》和 John Elder 的《Compiler Construction》。现在外面依然有一些有趣的成果……

    The Oberon/Modula-2 family happens to be among my favorite languages. It's one of the easier languages to implement and Amazon happens to have cheap Modula-2 compiler books. Wirth's own Compiler Construction book is free, though it's the definition of terse. I rather liked Julian R. Ullmann's Compiling in Modula-2 and John Elder's Compiler Construction. There's still interesting work that is out there to…

  • ……可能并不是让他们熟悉这个领域的最佳方式。这本书是一本“参考书”。如果有人想学基础的语法分析技术,我会首先建议他们去看像尼克劳斯·维尔特的《Compiler Construction》(PDF:http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf)这样的书,里面对递归下降解析的介绍简明清晰,只是轻描淡写地带过其他方法。Grune 的书则是用于……

    …is perhaps not the best way to familiarize them with it. This book is a _reference_. For someone who wants to learn basic parsing techniques, I'd first direct them to something like Niklaus Wirth's _Compiler Construction_ (PDF: http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf), which has a quick and clear introduction to recursive descent parsing, but only briefly touches on other methods. The Grune book is for when…

正在加载完整评论……

键盘快捷键

/
聚焦搜索框
j / k
下一本 / 上一本
Enter
打开选中的书
Esc
关闭 / 返回
g h
回到首页
g b
值得读精选
g t
历史总榜
g r
上升最快
g l
我的书架
?
显示本帮助