写点什么

《编译原理》阅读笔记:p19-p24

作者:codists
  • 2024-06-25
    广东
  • 本文字数:800 字

    阅读完需:约 3 分钟

《编译原理》学习第 4 天,p19-p24 总结,总计 5 页。

一、技术总结

1.grouping of phases

这里谈到分组(group),那么就会有一个疑问,分组的依据是什么?即根据什么来分组。


(1) front end & back end


编译器包含很多阶段(phase)——lexical analyzer, syntax analyzer, semantic analyzer, intermediate code generator, code optimizer, code generator, 这些阶段可以分为 front end 和 back end 两组。这里是根据 phase 的作用进行分组——“The front end consists of those phases, or parts of phases, that depend primarily on the source language and are largely independent of the target machine”。


(2)pass


可以将多个 phase 分成一个 pass。分组的依据是什么?暂时没有理解,先继续往下读。

2.compiler-construction tools

有哪些 tool,这些 tool 的作用是什么。这里只需要大概了解即可,用到的时候自然会知道。

3.参考文献

本书会在最后 Bibliography 章节列出所有的参考文献,翻了一下 Wexelblat 在 1981 年写的《history if programming languages》,介绍了 FORTRAN,LISP,COBOL 等编程语言,果然历史久远。

二、其它

p24, Ascribing credit for techniques remains a perilous task。这句话初看不好理解,ascribe: xxx 的原因,credit: 赞誉,perilous: 危险的。中译版将“ascribing credit”翻译成“论功”,甚是准确,但是翻译成“为编译技术论功是一项艰难的任务”,却有点生硬,我个人觉得应该将其翻译成“这些编译技术归功于谁?这真不好下结论,因为同一个技术,有时候确实是不同的人都发现了。”

四、参考资料

1. 编程

(1)Alfred V. Aho,Monica S. Lam,Ravi Sethi,Jeffrey D. Ullman,《编译原理(英文版·第 1 版)》:https://book.douban.com/subject/5416783/

2. 英语

(1)Etymology Dictionary:https://www.etymonline.com


(2) Cambridge Dictionary:https://dictionary.cambridge.org


欢迎搜索及关注:编程人(a_codists)

用户头像

codists

关注

公众号:编程人 2021-01-14 加入

Life is short, You need Python

评论

发布
暂无评论
《编译原理》阅读笔记:p19-p24_编译原理_codists_InfoQ写作社区