Compiler Construction

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Compilers and operating systems constitute the basic interfaces between a programmer and the machine for which he is developing software. In this book we are concerned with the construction of the former. Our intent is to provide the reader with a firm theoretical basis for compiler construction and sound engineering principles for selecting alternate methods, imple­ menting them, and integrating them into a reliable, economically viable product. The emphasis is upon a clean decomposition employing modules that can be re-used for many compilers, separation of concerns to facilitate team programming, and flexibility to accommodate hardware and system constraints. A reader should be able to understand the questions he must ask when designing a compiler for language X on machine Y, what tradeoffs are possible, and what performance might be obtained. He should not feel that any part of the design rests on whim; each decision must be based upon specific, identifiable characteristics of the source and target languages or upon design goals of the compiler. The vast majority of computer professionals will never write a compiler. Nevertheless, study of compiler technology provides important benefits for almost everyone in the field . • It focuses attention on the basic relationships between languages and machines. Understanding of these relationships eases the inevitable tran­ sitions to new hardware and programming languages and improves a person's ability to make appropriate tradeoft's in design and implementa­ tion .

Author(s): William M. Waite, Gerhard Goos
Series: Texts and Monographs in Computer Science
Publisher: Springer
Year: 1984

Language: English
Pages: 458
Tags: Programming Languages, Compilers, Interpreters

Front Matter....Pages i-xiv
Introduction and Overview....Pages 1-14
Properties of Programming Languages....Pages 15-45
Properties of Real and Abstract Machines....Pages 46-84
Abstract Program Representations....Pages 85-101
Elements of Formal Systems....Pages 102-134
Lexical Analysis....Pages 135-148
Parsing....Pages 149-182
Attribute Grammars....Pages 183-219
Semantic Analysis....Pages 220-252
Code Generation....Pages 253-281
Assembly....Pages 282-301
Error Handling....Pages 302-325
Optimization....Pages 326-357
Implementing the Compiler....Pages 358-382
Back Matter....Pages 382-447