COMPILER CONSTRUCTION Principles and practice Kenneth C. louden San Jose state university
COMPILER CONSTRUCTION Principles and Practice Kenneth C. Louden San Jose State University
Content INTRODUCTION 2. SCANNING 3. CONTEXT-FREE GRMMARS AND PARSING 4. TOP-DOWN PARSING 5. BOTTOM-UP PARSING 6. SEMANTIC ANALYSIS 7. RUNTIME ENVIRONMENT 8. CODE GENERATION
Content 1. INTRODUCTION 2. SCANNING 3. CONTEXT-FREE GRMMARS AND PARSING 4. TOP-DOWN PARSING 5. BOTTOM-UP PARSING 6. SEMANTIC ANALYSIS 7. RUNTIME ENVIRONMENT 8. CODE GENERATION
Main references Books 《编译原理及实践》 美) Kenneth C. Louden著,冯博琴、冯岚等译, 机械工业出版社, 《编译程序原理与技术》, 李赣生、王华民编著,清华大学出版社。 《编译原理》, (美) AlfredⅤAho等著,李建中、姜守旭等译, 机械工业出版社
Main References Books: • 《编译原理及实践》, – (美)Kenneth C. Louden著,冯博琴、冯岚等译, 机械工业出版社。 • 《编译程序原理与技术》, – 李赣生、王华民编著,清华大学出版社。 • 《编译原理》, – (美)Alfred V. Aho 等著,李建中、姜守旭等译, 机械工业出版社
1 INTRODUCTION
1. INTRODUCTION
What is a compiler A computer program translates one language to another Source→ Compil Target er Program Program a compiler is a complex program From 10.000 to 1.000.000 lines of codes Compilers are used in many forms of computing Command interpreters, interface programs
What is a compiler? • A computer program translates one language to another • A compiler is a complex program • From 10,000 to 1,000,000 lines of codes • Compilers are used in many forms of computing • Command interpreters, interface programs Compiler Source Program Target Program