您当前位置: 首页  >  人才培养  >  旗下产业  >  课程简介

课程简介

编译原理与实现

《编译原理与实现》课程介绍

 

    编译程序是一个十分庞大而又复杂的系统软件,它的功能是把用户使用高级语言编写的程序自动转换为等价的用机器语言编写的程序,任何高级程序设计语言的实现都离不开编译技术。

    《编译原理与实现》课程是计算机科学与技术专业员工的主干专业课。开设本课程的目的是使员工学习掌握构造编译程序所涉及的基本理论、基本方法和基本技术,具备分析、设计和实现编译程序的基本能力。

    本课程主要内容包括:编译程序各个重要组成部分的设计原理和实现方法,语言词法的形式化描述及词法分析程序的设计,语法的形式化描述及语法分析程序的设计,语义分析程序的设计、中间代码生成程序的设计,代码优化程序的设计及目标代码生成程序的设计。

    本课程第三学年第一学期开设,计划学时64,先修课为:高级语言程序设计,数据结构,计算机组成原理。本课程另开设实验课程,36学时(详见编译原理课程设计)。

 

 

Introduction to the courseCompiler 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).