A Practical Approach to Compiler Construction (Undergraduate Topics in Computer Science) (編譯器建構的實用方法(計算機科學本科主題))

Des Watson

  • 出版商: Springer
  • 出版日期: 2017-04-10
  • 定價: $1,850
  • 售價: 8.0$1,480
  • 語言: 英文
  • 頁數: 254
  • 裝訂: Paperback
  • ISBN: 3319527878
  • ISBN-13: 9783319527871
  • 相關分類: CompilerComputer-Science
  • 立即出貨 (庫存 < 3)

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

相關主題

商品描述

This book provides a practically-oriented introduction to high-level programming language implementation. It demystifies what goes on within a compiler and stimulates the reader's interest in compiler design, an essential aspect of computer science. Programming language analysis and translation techniques are used in many software application areas.

A Practical Approach to Compiler Construction covers the fundamental principles of the subject in an accessible way. It presents the necessary background theory and shows how it can be applied to implement complete compilers. A step-by-step approach, based on a standard compiler structure is adopted, presenting up-to-date techniques and examples. Strategies and designs are described in detail to guide the reader in implementing a translator for a programming language.

A simple high-level language, loosely based on C, is used to illustrate aspects of the compilation process. Code examples in C are included, together with discussion and illustration of how this code can be extended to cover the compilation of more complex languages. Examples are also given of the use of the flex and bison compiler construction tools. Lexical and syntax analysis is covered in detail together with a comprehensive coverage of semantic analysis, intermediate representations, optimisation and code generation. Introductory material on parallelisation is also included.

 

Designed for personal study as well as for use in introductory undergraduate and postgraduate courses in compiler design, the author assumes that readers have a reasonable competence in programming in any high-level language.

 

 

商品描述(中文翻譯)

本書提供了一個實用導向的高階程式語言實作入門。它揭開了編譯器內部的神秘面紗,並激發讀者對編譯器設計的興趣,這是計算機科學中不可或缺的一個方面。程式語言分析和轉譯技術在許多軟體應用領域中都有應用。

《實用編譯器構建方法》以易於理解的方式介紹了這個主題的基本原理。它呈現了必要的背景理論,並展示了如何應用這些理論來實現完整的編譯器。採用了一種基於標準編譯器結構的逐步方法,介紹了最新的技術和示例。詳細描述了策略和設計,以指導讀者實現一個用於程式語言的轉譯器。

書中使用了一種簡單的高階語言,基於C語言的鬆散結構,來說明編譯過程的各個方面。書中包含了C語言的程式碼示例,並討論和說明如何擴展這些程式碼以涵蓋更複雜語言的編譯。書中還提供了使用flex和bison編譯器構建工具的示例。詳細介紹了詞法和語法分析,以及對語義分析、中間表示、優化和代碼生成的全面覆蓋。書中還包含了關於並行化的入門材料。

本書旨在供個人學習以及作為編譯器設計入門本科和研究生課程的教材,作者假設讀者在任何高階語言的程式設計方面具有合理的能力。