Faculty of Information Technology, BUT

Course details

Compiler Construction (in English)

VYPa Acad. year 2018/2019 Winter semester 5 credits

Current academic year

This course discusses the construction of compilers in detail. This discussion concentrates on the following three topics: (I) Advanced topics of classical compilers: LR-table construction, general precedence analysis, general methods of syntax analysis, advanced methods of optimization. (II) Principles of parallel compilers: parallel compiler structure, fundamental methods of parallel syntax analysis, basic models of parallel translation. (III) Formal translation models and their properties: transducers, translation grammars, properties of syntax directed translation, formal language properties relevant to compilers, modern translation models.

Guarantor

Deputy Guarantor

Language of instruction

English

Completion

Examination (written)

Time span

39 hrs lectures, 13 hrs projects

Assessment points

55 exam, 15 half-term test, 30 projects

Department

Lecturer

Instructor

Kocman Radim, Ing. (DIFS FIT BUT)
Křivka Zbyněk, Ing., Ph.D. (DIFS FIT BUT)
Martiško Jakub, Ing. (DIFS FIT BUT)
Regéciová Dominika, Ing. (DIFS FIT BUT)

Course Web Pages

Subject specific learning outcomes and competences

Ability of an advanced compiler construction including parallel compiler. Deep familiarity with the theory and practice of programming language translation.

Generic learning outcomes and competences

General knowledge of formal models for translation and their applications.

Learning objectives

Thorough grasp of compiler construction, including modern parallel compiler construction. Deep familiarity with the theory behind the translation of programming languages.

Why is the course taught

Maintaining a balance between a theoretical and practical approach to this important subject, VYPa represents a master-level class about compiler writing. From a theoretical viewpoint, it introduces mathematical models, such as automata and grammars, which underlie compilation and its phases. Based on these models, the class details the concepts, methods, and techniques employed in compiler design in a clear and easy-to-follow way.

From a practical point of view, the class describes how compilation techniques are implemented.  While discussing various compilation techniques, the class demonstrates their implementation in a step-by-step way. In addition, the class presents many detailed examples and computer programs to emphasize the applications of the compiler algorithms.

After taking this class, students should understand the compilation process, be able to write a real compiler, and easily follow advanced books on the subject.

Prerequisite kwnowledge and skills

Basic knowledge of discrete mathematics.

Study literature

  • Češka, M., Ježek, K., Melichar, B., Richta, K.: Konstrukce překladačů, Praha, CZ, ČVUT, 1999, 636 p., ISBN 80-01-02028-2 (in Czech)

Fundamental literature

  • Cooper, K.D.: Engineering a Compiler, San Francisco, Morgan Kaufmann, 2004, 879 p., ISBN 155860698X 

Syllabus of lectures

  • Introduction: compiler structure.
  • Deterministic bottom-up syntax analysis: LR table construction.
  • Deterministic bottom-up syntax analysis: general precedence analysis.
  • General syntax analysis: important backtrack parsing methods.
  • Advanced optimization.
  • Parallel compilers: parallel compiler structure.
  • Parallel syntax analysis: principles.
  • Deterministic methods of parallel top-down syntax analysis.
  • Deterministic methods of parallel bottom-up syntax analysis.
  • Parallel code generation.
  • Modern formal tools for language specification: regulated and parallel models.
  • Formal tools for language translation: transducers and translation grammars.
  • Expected future trends; summary; conclusion.

Syllabus - others, projects and individual work of students

(1) Making an advanced compiler. (2) Preparation and presentation of a selected topic about compilers.

Progress assessment

A mid-term exam.

Controlled instruction

A written exam, creation of a project.

Course inclusion in study plans

Back to top