Skip to main content

Engineering a Compiler

  • 3rd Edition - August 20, 2022
  • Latest edition
  • Authors: Keith D. Cooper, Linda Torczon
  • Language: English

*Textbook and Academic Authors Association (TAA) Textbook Excellence Award Winner, 2024*Engineering a Compiler, Third Edition covers the latest developments in compiler technolo… Read more

Data Mining & ML

Unlock the cutting edge

Up to 20% on trusted resources. Build expertise with data mining, ML methods.

Description

*Textbook and Academic Authors Association (TAA) Textbook Excellence Award Winner, 2024*

Engineering a Compiler, Third Edition covers the latest developments in compiler technology, with new chapters focusing on semantic elaboration (the problems that arise in generating code from the ad-hoc syntax-directed translation schemes in a generated parser), on runtime support for naming and addressability, and on code shape for expressions, assignments and control-structures. Leading educators and researchers, Keith Cooper and Linda Torczon, have revised this popular text with a fresh approach to learning important techniques for constructing a modern compiler, combining basic principles with pragmatic insights from their own experience building state-of-the-art compilers.

Key features

  • Presents in-depth treatments of algorithms and techniques used in the front end of a modern compiler
  • Pays particular attention to code optimization and code generation, both primary areas of recent research and development
  • Focuses on how compilers (and interpreters) implement abstraction, tying the underlying knowledge to students’ own experience and to the languages in which they have been taught to program
  • Covers bottom-up methods of register allocation at the local scope

Readership

Primarily graduate, some undergraduate students in computer science; professional compiler writers, system software developers, architects and computer system designers

Table of contents

1. Overview of Compilation

2. Scanners

3. Parsers

4. Intermediate Representations

5. Syntax-Driven Translation

6. Implementing Procedures

7. Code Shape

8. Introduction to Optimization

9. Data-Flow Analysis

10. Scalar Optimization

11. Instruction Selection

12. Instruction Scheduling

13. Register Allocation

14. Runtime Optimization

Product details

  • Edition: 3
  • Latest edition
  • Published: October 2, 2022
  • Language: English

About the authors

KC

Keith D. Cooper

Dr. Cooper Ph.D., Professor, Dept. of Computer Science at Rice University, is the leader of the Massively Scalar Compiler Project at Rice, which investigates issues relating to optimization and code generation for modern machines. He is also a member of the Center for High Performance Software Research, the Computer and Information Technology Institute, and the Center for Multimedia Communication -- all at Rice. He teaches courses in Compiler Construction at the undergraduate and graduate level.
Affiliations and expertise
Department of Computer Science, Rice University, Houston, Texas, USA

LT

Linda Torczon

Linda Torczon is a principal investigator on the Massively Scalar Compiler Project at Rice University, and the Grid Application Development Software Project sponsored by the next Generation Software program of the National Science Foundation. She also serves as the executive director of HiPerSoft and of the Los Alamos Computer Science Institute. Her research interests include code generation, interprocedural dataflow analysis and optimization, and programming environments.
Affiliations and expertise
Principal Investigator on the Massively Scalar Compiler Project, Rice University, Houston, Texas, USA

View book on ScienceDirect

Read Engineering a Compiler on ScienceDirect