Compilation Principles Third Edition


The third edition of this book is a national key textbook for the "Tenth Five-Year Plan" of general higher education. It aims to systematically introduce the structure of the compilation system, work flow and the design of the compiler Principles and implementation techniques. The book has 11 chapters, including basic knowledge of language and grammar, lexical analysis, syntax analysis, semantic analysis and intermediate code generation, symbol table organization, runtime storage organization and allocation, code optimization, target code generation, and object-oriented language Compilation technology, etc. In terms of content organization, this book organically combines the basic theory of compilation and specific implementation technology, which not only accurately and clearly expounds related concepts and principles, but also gives typical implementation procedures; at the same time, it is quite popular and popular at present. The function and method of using the analyzer automatic generation tool with good results are also introduced in detail. This book strives to reflect the latest achievements in compilation technology. The analysis algorithms, drivers and semantic actions listed in the book are all described in C language. After each chapter, there are a large number of exercises and computer practice questions. The text of this book is concise and easy to understand, and the content is gradual and easy to learn. This book can be used as a textbook for university undergraduate majors in computer science, and can also be used as a reference book for computer software technicians.

To complement this book, Northwestern Polytechnical University Press has published the book "Analysis of Common Questions and Simulated Questions of Compiler Principles". The book is written to help students deepen their understanding of the basic content of the course; improve their ability to solve problems and meet the needs of postgraduate entrance examination review. It also provides detailed answers to the key exercises in this book.

Book Catalog

Chapter 1 Introduction

1.1 Overview of Compilation Process

1.2 Logical Structure of Compiler

1.2.1 Lexical analysis program

1.2.2 Syntax analysis program

1.2.3 Semantic analysis program

1.2.4 Intermediate code generation

1.2.5 code optimization program

1.2.6 target code generation program

1.2.7 error checking and handling program

1.2.8 information table Management program

1.3 Organization of the compiler


Chapter 2 Before and after the text has nothing to do with grammar and language

2.1 Grammar and language Representation

2.2 Definition of grammar and language

2.2.1 Basic concepts and terms

2.2.2 Formal definition of grammar and language

2.3 Analysis of sentence patterns

2.3.1 Normative derivation and

Related Articles