《編譯原理與實現》課程介紹
編譯程序是一個十分龐大而又複雜的系統軟件,它的功能是把用戶使用高級語言編寫的程序自動轉換為等價的用機器語言編寫的程序,任何高級程序設計語言的實現都離不開編譯技術。
《編譯原理與實現》課程是計算機科學與技術專業學生的主幹專業課。開設本課程的目的是使學生學習掌握構造編譯程序所涉及的基本理論、基本方法和基本技術,具備分析、設計和實現編譯程序的基本能力。
本課程主要内容包括:編譯程序各個重要組成部分的設計原理和實現方法,語言詞法的形式化描述及詞法分析程序的設計,語法的形式化描述及語法分析程序的設計,語義分析程序的設計、中間代碼生成程序的設計,代碼優化程序的設計及目标代碼生成程序的設計。
本課程第三學年第一學期開設,計劃學時64,先修課為:高級語言程序設計,數據結構,計算機組成原理。本課程另開設實驗課程,36學時(詳見編譯原理課程設計)。
Introduction to the course“Compiler Construction Principle and
Implementation Technique”
A compiler is large scale and complex system software, whose function is automatically translating a program written in high-level programming language into an equivalent program in machine code. Implementation of any high-level programming language needs to use compiler techniques.
The course “Compiler Construction Principle and Implementation Technique” is an important obligatory course for the major of computer science and technology. The course aims at teaching students to grasp basic theory, basic method and basic techniques in compiler construction, as well as the abilities to analyze, design and implement a compiler.
The main content of the course includes design principle and implementation techniques for all components of a compiler, formal description of lexicon, scanner design, formal description of syntax, parser design, semantic analyzer design, intermediate code generator design, code optimization and target code generator design.
The course will be taught in the first semester of the third academic year, which includes 64 hours. Its prerequisite courses include high-level programming, data structure, principle of computer organization. Compiler project course will be given separately(the detail can be found in the syllabus of compiler project course).