Skip to main content
  • Textbook
  • © 2010

Compiler Design

Virtual Machines

  • Written by established experts Illustrated with many examples, exercises and program fragments First book in a multivolume set,

  • a new edition of an established textbook

  • Includes supplementary material: sn.pub/extras

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book USD 79.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (5 chapters)

  1. Front Matter

    Pages i-xiii
  2. Introduction

    • Reinhard Wilhelm, Helmut Seidl
    Pages 1-5
  3. Imperative Programming Languages

    • Reinhard Wilhelm, Helmut Seidl
    Pages 7-55
  4. Functional Programming Languages

    • Reinhard Wilhelm, Helmut Seidl
    Pages 57-104
  5. Logic Programming Languages

    • Reinhard Wilhelm, Helmut Seidl
    Pages 105-153
  6. Object-Oriented Programming Languages

    • Reinhard Wilhelm, Helmut Seidl
    Pages 155-177
  7. Back Matter

    Pages 179-187

About this book

While compilers for high-level programming languages are large complex software systems, they have particular characteristics that differentiate them from other software systems. Their functionality is almost completely well-defined – ideally there exist complete precise descriptions of the source and target languages, while additional descriptions of the interfaces to the operating system, programming system and programming environment, and to other compilers and libraries are often available. The implementation of application systems directly in machine language is both difficult and error-prone, leading to programs that become obsolete as quickly as the computers for which they were developed. With the development of higher-level machine-independent programming languages came the need to offer compilers that were able to translate programs into machine language. Given this basic challenge, the different subtasks of compilation have been the subject of intensive research since the 1950s.

This book is not intended to be a cookbook for compilers, instead the authors' presentation reflects the special characteristics of compiler design, especially the existence of precise specifications of the subtasks. They invest effort to understand these precisely and to provide adequate concepts for their systematic treatment. This is the first book in a multivolume set, and here the authors describe what a compiler does, i.e., what correspondence it establishes between a source and a target program. To achieve this the authors specify a suitable virtual machine (abstract machine) and exactly describe the compilation of programs of each source language into the language of the associated virtual machine for an imperative, functional, logic and object-oriented programming language.

This book is intended for students of computer science. Knowledge of at least one imperative programming language is assumed, while for the chapters on the translation of functional and logic programming languages it would be helpful to know a modern functional language and Prolog. The book is supported throughout with examples, exercises and program fragments.

Reviews

“This book is markedly different from other books on compiler design. … this one looks at the environments that are needed to support the execution of the programs being compiled. The book treats each of these execution environments as a type of machine that follows the semantics of particular styles of programming languages. … The book’s concepts are illustrated in color, with many examples and visual aids. … Summing Up: Recommended. All academic, professional, and general readers.” F. H. Wild III, Choice, Vol. 48 (11), July 2011

"The color diagrams provide additional descriptions of each machine instruction operation on the runtime stack; these are clear and helpful. The book provides many clear code generation examples, each with the right level of detail to explain the salient points of a translation. Each chapter ends with an extensive set of exercises designed to help the reader work through additional translation schemes that add more power to the C language subset. ... (The book is) short, written in a spare and clear style, and thoughtfully sequenced for motivated readers. ... (F)or anyone interested in compilers and code generation for modern programming language implementations, this book is a must-read." Michael Zastre, ACM Computing Reviews, December 2011

Authors and Affiliations

  • , Compiler Research Group, Universität des Saarlandes, Saarbrücken, Germany

    Reinhard Wilhelm

  • , Fakultät für Informatik, Technische Universität München, Garching, Germany

    Helmut Seidl

Bibliographic Information

  • Book Title: Compiler Design

  • Book Subtitle: Virtual Machines

  • Authors: Reinhard Wilhelm, Helmut Seidl

  • DOI: https://doi.org/10.1007/978-3-642-14909-2

  • Publisher: Springer Berlin, Heidelberg

  • eBook Packages: Computer Science, Computer Science (R0)

  • Copyright Information: Springer-Verlag Berlin Heidelberg 2010

  • Hardcover ISBN: 978-3-642-14908-5Published: 03 December 2010

  • Softcover ISBN: 978-3-662-50622-6Published: 23 August 2016

  • eBook ISBN: 978-3-642-14909-2Published: 10 November 2010

  • Edition Number: 1

  • Number of Pages: XIII, 187

  • Topics: Programming Languages, Compilers, Interpreters, Programming Techniques

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book USD 79.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access