Modern Compiler Implementation in C (美國原版)

Andrew W. Appel

買這商品的人也買了...

商品描述

Description:

This new, expanded textbook describes all phases of a modern compiler: lexical analysis, parsing, abstract syntax, semantic actions, intermediate representations, instruction selection via tree matching, dataflow analysis, graph-coloring register allocation, and runtime systems. It includes good coverage of current techniques in code generation and register allocation, as well as functional and object-oriented languages, that are missing from most books. In addition, more advanced chapters are now included so that it can be used as the basis for a two-semester or graduate course. The most accepted and successful techniques are described in a concise way, rather than as an exhaustive catalog of every possible variant. Detailed descriptions of the interfaces between modules of a compiler are illustrated with actual C header files. The first part of the book, Fundamentals of Compilation, is suitable for a one-semester first course in compiler design. The second part, Advanced Topics, which includes the advanced chapters, covers the compilation of object-oriented and functional languages, garbage collection, loop optimizations, SSA form, loop scheduling, and optimization for cache-memory hierarchies.

 

商品描述(中文翻譯)

描述:這本新的擴充教科書描述了現代編譯器的所有階段:詞法分析、解析、抽象語法、語義動作、中間表示、通過樹匹配進行指令選擇、數據流分析、圖形著色寄存器分配和運行時系統。它包括了代碼生成和寄存器分配中的當前技術的良好涵蓋,以及大多數書籍中缺少的功能和面向對象的語言。此外,現在還包括了更高級的章節,以便作為兩學期或研究生課程的基礎。最被接受和成功的技術以簡潔的方式描述,而不是作為每種可能變體的詳盡目錄。編譯器模塊之間的接口的詳細描述以實際的C頭文件為例。書的第一部分《編譯基礎》適合作為編譯器設計的一學期第一門課。第二部分《高級主題》包括高級章節,涵蓋面向對象和功能語言的編譯、垃圾回收、循環優化、SSA形式、循環調度和針對緩存記憶體層次的優化。