《可重定向 C 编译器》封面

可重定向 C 编译器

A retargetable C compiler

Christopher W. Fraser · 初版 1995 年

9人推荐
16位读者提及
23次提及

为什么值得读

  • 避开繁琐状态机转换,直奔完整编译器落地
  • 采用文学化编程风格,代码讲解细致清晰
  • 完整构建并解释整个编译器系统的前后端设计

特色:探讨了构建真实 ANSI C 编译器过程中的实现细节与设计权衡,展现理论与实践的结合;仅在理解 lcc 实现所需时才涉及编译理论,将重点放在实际应用问题上;通过站在编译器作者的视角带领 C 语言程序员审视该语言,促进对 C 语言编程的深入理解;涵盖针对 MIPS R3000、SPARC、Intel 386 及其后续架构的代码生成器;并提供获取 lcc 编译

Hacker News 上怎么说

  • ……编译原理课程相当死板。但如果有人只是想赶紧手搓一个编译器出来,而不想被词法分析里怎么把 NFA 转为 DFA 等一堆细节淹没,有几本不错的备选书:汉森和弗雷泽写的《可重定向C语言编译器:设计与实现》(A Retargetable C Compiler: Design and Implementation,http://www.amazon.com/Retargetable-Compiler-Design-Implement...)。这本书构建、记录并讲解了一个完整 C 编译器的代码,带有……

    …compiler course is fairly static. But if a person is merely looking to bang out a compiler without getting overwhelmed with how to convert NFAs to DFAs for lexing, etc., some good alternative books are: A Retargetable C Compiler: Design and Implementation, by Hanson and Fraser (http://www.amazon.com/Retargetable-Compiler-Design-Implement...). This book constructs and documents the explains the code for a full C compiler with…

  • 《可重定向C语言编译器:设计与实现》(A Retargetable C Compiler: Design and Implementation)https://www.amazon.com/Retargetable-Compiler-Design-Implemen... 一本极其优秀的魔法书。

    A Retargetable C Compiler: Design and Implementation https://www.amazon.com/Retargetable-Compiler-Design-Implemen... A most excellent grimoire.

  • 任何人想写 C 编译器都有两本好书可读。大卫·R·汉森和克里斯托弗·W·弗雷泽的《可重定向C语言编译器:设计与实现》(A Retargetable C Compiler: Design and Implementation),以及艾伦·I·霍卢布的《C语言编译器设计》(Compiler Design in C)。虽然有点老,但自从它们出版以来 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,…

  • 这个可能用得上:大卫·汉森和克里斯托弗·弗雷泽的《可重定向C语言编译器:设计与实现》(A Retargetable C Compiler: Design and Implementation)https://www.amazon.com/Retargetable-Compiler-Design-Implemen... 采用 literate programming(文学编程)风格编写。

    This might be relevant A Retargetable C Compiler: Design and Implementation by David Hanson and Chritopher Fraser https://www.amazon.com/Retargetable-Compiler-Design-Implemen... Written in a literate programming style.

  • ……市面上有不少极棒的 C 语言书籍:* 《C程序设计语言》(C Programming Language)——K&R 著 * 《工程应用 C 语言必备指南》(The Indispensable Guide to C with Engineering Applications)——Paul Davies 著 * 《C语言接口与实现》(C Interfaces and Implementations)——David Hanson 著 * 《可重定向C语言编译器:设计与实现》(A Retargetable C Compiler: Design and Implementation)——David Hanson 著 * 《图形程序设计黑皮书》(Graphics Programming Black Book)——Abrash 著,里面有很多 Quake 的干货

    …great C books out there: * C Programming Language - by K&R * The Indispensable Guide to C with Engineering Applications - by Paul Davies * C Interfaces and Implementations - by David Hanson * A Retargetable C Compiler: Design and Implementation - by David Hanson * Graphics Programming Black Book - by Abrash with lots of Quake goodies

  • 很多人推荐了大卫·R·汉森的《C语言接口与实现》(C Interfaces and Implementations),那我也顺便提一下他的《可重定向C语言编译器:设计与实现》(A Retargetable C Compiler: Design and Implementation)。我有这本书但还没读过,讲的是用 C 语言写一个 C 编译器。你基本上闭着眼睛去买这两本书就行了,因为它们早晚会……

    A number of people have recommended David R. Hanson's C Interfaces and Impementations, so I'll mention his A Retargetable C Compiler: Design and Implementation. I own this book though I haven't read it, but it's about writing a C compiler in C. You should pretty much just go out and buy these two books because they'll eventually go…

正在加载完整评论……

键盘快捷键

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