Authors:
- Presents a practically-oriented introduction to compiler design
- Explains the fundamental principles of programming language implementation
- Shows how a compiler can be constructed, with and without the use of compiler construction tools
- Includes supplementary material: sn.pub/extras
Part of the book series: Undergraduate Topics in Computer Science (UTICS)
Buy it now
Buying options
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 (9 chapters)
-
Front Matter
-
Back Matter
About this book
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.
Reviews
“The book is an excellent resource for anyone who is looking for an introduction to the basic structure and concepts of a compiler. Better-suited works are available for an in-depth analysis.” (Jonas Devlieghere, Computing Reviews , February, 16, 2018)
Authors and Affiliations
-
Department of Informatics, Sussex University, Brighton, United Kingdom
Des Watson
About the author
Des Watson works in the field of compiler design and development. He has extensive experience in research and both undergraduate and postgraduate teaching in programming language design and implementation at the University of Sussex, UK. He also works with commercial organisations, particularly in the field of compiler optimisation of code for embedded systems.
Bibliographic Information
Book Title: A Practical Approach to Compiler Construction
Authors: Des Watson
Series Title: Undergraduate Topics in Computer Science
DOI: https://doi.org/10.1007/978-3-319-52789-5
Publisher: Springer Cham
eBook Packages: Computer Science, Computer Science (R0)
Copyright Information: Springer Nature Switzerland AG 2017
Softcover ISBN: 978-3-319-52787-1Published: 10 April 2017
eBook ISBN: 978-3-319-52789-5Published: 22 March 2017
Series ISSN: 1863-7310
Series E-ISSN: 2197-1781
Edition Number: 1
Number of Pages: XV, 254
Number of Illustrations: 26 b/w illustrations
Topics: Programming Languages, Compilers, Interpreters, Coding and Information Theory