《C 语言编译器设计》封面

C 语言编译器设计

Compiler design in C

Allen I. Holub · 初版 1990 年

11人推荐
18位读者提及
28次提及

为什么值得读

  • 手把手教学实现lex和yacc替代工具
  • 清晰阐述基于C语言的递归下降编译器设计
  • 深入探讨将C作为中间语言的处理方式

Hacker News 上怎么说

  • 要是有人想了解把 C 当作中间语言来用,可以看看《Compiler Design in C》(1990 年)http://www.amazon.com/Compiler-Design-C-Prentice-Hall-softwa... 补充更新:再补充几句我觉得挺有意思的想法。另一个我非常喜欢的思路,是直接输出……

    For anyone wanting to read about C as intermediate language, Compiler Design in C (1990) http://www.amazon.com/Compiler-Design-C-Prentice-Hall-softwa... EDIT: Adding some extra remarks I think might also be interesting to share. Another approach, that I really like, is to output…

  • 如果让我今天从零开始写一个编译器,我肯定会首选 Holub 的那本《Compiler Design in C》。

    And if I were to start writing a compiler today, I would certainly start with Holub's book Compiler Design in C.

  • ……用递归下降法实现的完整 C 编译器(完全没用 flex/lex 或 bison/yacc)。我之前有给这个编译器扩充功能的经验,所以可以打包票,这本书把他们的设计思路讲得非常透彻。《Compiler Design in C》,Allen Holub 著(http://www.holub.com/software/compiler.design.in.c.html)。这个链接里还能直接下载 PDF。这是一本 1990 年的老书,Holub 在书里自己手写了一套 lex 和 yacc,然后……

    …full C compiler with a recursive descent approach (no flex/lex or bison/yacc). I have some experience augmenting this compiler, so I can vouch for the book's ability to clearly convey their design. Compiler Design in C, by Allen Holub (http://www.holub.com/software/compiler.design.in.c.html). Downloadable PDF at that link as well. A book from 1990 in which Holub constructs his own version of lex and yacc, and then…

  • 任何人想要手写 C 编译器,都有两本好书可读:一本是 David R. Hanson 和 Christopher W. Fraser 写的《A Retargetable C Compiler: Design and Implementation》,另一本是 Allen I. Holub 写的《Compiler Design in C》。虽然年头有点久,但除了现在的优化器更会抓着 UB(未定义行为)大做文章之外,C 语言本身从成书到现在其实没啥大变化。

    Anyone that wants to write C compilers has two good books for it. "A Retargetable C Compiler: Design and Implementation", from David R. Hanson and Christopher W. Fraser "Compiler Design in C", from by Allen I. Holub A bit old, but there are not significant changes to C since they were written, other than optimizers taking advantage of UB.

  • 10 天前我刚刷完第一本书,现在已经迫不及待想拿到这第二本讲编译器的书了!我目前在啃 Allen I. Holub 的《Compiler Design in C》(https://holub.com/compiler/ ),读到现在感觉挺棒的。不过要是用 Go 替代 C 来写,应该也是个很香的选择!太期待读这本新书了。

    10 days ago, I finished the first book and now I can't wait to get in my hands this second book about compilers! I'm currently reading "Compiler Design in C" by Allen I. Holub, https://holub.com/compiler/, and so far I like it. But to use Go in place of C would be a nice alternative as well! I can't wait to read the new book.

  • 书单里居然没提 Alan Holub 的《Compiler Design in C》。Holub 这本书里的代码写得极好,我当年从他的代码里学到了太多东西。

    Alan Holub's 'Compiler Design in C' is not mentioned in the books. Holub's book had well-written code. I had learned a lot from his code.

正在加载完整评论……

键盘快捷键

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