Skip to content
Technische Universität Berlin Deutsch
Course catalog and module transfer system

Compiling TechniquesModule description #41162 / Version 1

← Module page Deutsche Fassung
This module description is not valid in the current semester (Winter semester 2026/27). Current version (v2)
Module / Version#41162 / #1
ValiditySummer semester 2024 – Summer semester 2026
Available language(s)English, German
Credit points6
Person responsible for the moduleSteuwer, Michel
GradingGraded
Exam formatPortfolio examination
Language(s) of instructionEnglish

Affiliation

FacultyFakultät IV
InstituteInstitut für Softwaretechnik und Theoretische Informatik
Academic chair34353200 FG Programmiersprachen

Contact

OfficeEN 21
Contact personSteuwer, Michel
E-mail addresslehre@compl.tu-berlin.de
Websitehttps://www.tu.berlin/compl/studium-lehre

Learning outcomes

On completion of this course, the student will be able to:
* understand the design of modern compilers
* analyse compilation tasks and apply standard compilation techniques
* design, implement and apply modifications to standard compilation techniques and algorithms
* implement a fully functional compiler following modern compiler design principles

Content

In this course, students learn about the phases of a modern programming language compiler, with an emphasis on techniques widely used in practice. Students will learn about implementing compiler passes in a real compiler framework. The course project will require students to implement a complete compiler from scratch for a simple programming language, targeting a real machine assembly.

* Introduction: structure of a compiler
* Lexical analysis: tokens, regular expressions, Lex
* Parsing: context-free grammars, predictive and LR parsing
* Abstract syntax: semantic actions, abstract parse trees
* Semantic analysis: symbol tables, bindings, type-checking
* Intermediate code: intermediate representations, SSA, translations
* Liveness analysis: solution of dataflow equations
* Instruction selection: algorithms for selection, RISC and CISC
* Register allocation: colouring by simplification, coalescing
* Real assembly language: ARM, MIPS, RISC-V, or similar
* Advanced Topics may include: automatic parallelisation, popular open-source compilers: GCC, LLVM, MLIR

Module components

Compulsory area

The following courses are mandatory for this module:

CoursesTypeNumberFrequencyLanguageHours per weekCourse catalog
Compiling TechniquesLecture Summer semester[de]2 ISIS
Compiling TechniquesInternship Summer semester[de]4 ISIS

Workload and credit points

Compiling Techniques (Lecture)

Workload descriptionMultiplierHoursTotal
Attendance152 h30 h
Pre/post processing152 h30 h
60 h

Compiling Techniques (Internship)

Workload descriptionMultiplierHoursTotal
Attendance154 h60 h
Pre/post processing154 h60 h
120 h

The workload of the module adds up to 180 hours. The module therefore comprises 6 credit points.

Description of teaching and learning methods

This module consists of a weekly lecture that teaches the foundations of modern compiler design. The main component of this module is a practical project in which the students individually implement a fully working compiler. Labs will assist the students in their practical work.

Requirements for participation and examination

Desirable prerequisites for participation in the courses:

The modules "Algorithmen und Datenstrukturen" as well as "Rechnerorganisation" and "Systemprogrammierung", as well as a solid programming skills in Python are required.

Mandatory requirements for the module examination registration:

This module has no examination requirements.

Completion of the module

GradingGraded
Exam formatPortfolio examination
Type of portfolio examination100 points in total
LanguageEnglish, German

Test elements

NamePoints/WeightCategoryDuration/Extent
(Deliverable assessment) Course Work 1 (Lexical analysis & parsing)30practical3 Weeks
(Deliverable assessment) Course Work 2 (Semantic analysis)30practical3 Weeks
(Deliverable assessment) Course Work 3 (Code generation)30practical3 Weeks
(Deliverable assessment) Course Work 4 (Optimisation)10practical2 Weeks

Duration of the module

The following number of semesters is estimated for taking and completing the module: 1 semester(s).

This module can be started in the following semesters: Summer semester.

Maximum number of participants

This module is not limited to a number of students.

Registration procedures

See https://compl.tu-berlin.de as well as the first lecture.

Recommended reading, lecture notes

Lecture notes

unavailable

Electronic lecture notes

available – https://compl.tu-berlin.de

Recommended literature

No recommended literature given

Assigned programs

This module version is used in the following programs:

Program / program versionSemester(s)Curriculum component
Computer Engineering
Computer Engineering (B. Sc.) - StuPO 2015
SS 2025Wahlpflichtbereich › Informatik
WS 2025/26Wahlpflichtbereich › Informatik
SS 2026Wahlpflichtbereich › Informatik
Computer Engineering
Computer Engineering (M. Sc.) - StuPO 2015
SS 2025Wahlpflicht Studiengebiete Fak. IV › Eingebettete Systeme und Rechnerarchitekturen / Embedded Systems and Computer Architectures
WS 2025/26Wahlpflicht Studiengebiet B › Eingebettete Systeme und Rechnerarchitekturen / Embedded Systems and Computer Architectures
SS 2026Wahlpflicht Studiengebiet B › Eingebettete Systeme und Rechnerarchitekturen / Embedded Systems and Computer Architectures
Computer Science
Computer Science (B. Sc.) - StuPO 2015
SS 2025Wahlpflichtbereich › Wahlpflichtbereich Katalog Informatik
WS 2025/26Wahlpflichtbereich › Wahlpflichtbereich Katalog Informatik
SS 2026Wahlpflichtbereich › Wahlpflichtbereich Katalog Informatik
Computer Science (Informatik)
Computer Science (Informatik) (M. Sc.) - StuPO 2015
SS 2025Wahlpflicht Studiengebiete Fak. IV › Grundlagen der Informatik / Foundations of Computing
WS 2025/26Studiengebiete › Grundlagen der Informatik / Foundations of Computing
SS 2026Studiengebiete › Grundlagen der Informatik / Foundations of Computing
Electrical Engineering
Electrical Engineering (M. Sc.) - StuPO 2015
SS 2025Wahlpflicht Studiengebiete Fak. IV › Eingebettete Systeme und Rechnerarchitekturen / Embedded Systems and Computer Architectures
WS 2025/26Wahlpflicht Studiengebiete Fak. IV › Grundlagen der Informatik / Foundations of Computing
SS 2026Wahlpflicht Studiengebiete Fak. IV › Grundlagen der Informatik / Foundations of Computing
Information Systems Management
Information Systems Management (B. Sc.) - StuPO 2015
SS 2025Wahlpflichtbereich › Informatik
WS 2025/26Wahlpflichtbereich › Informatik
SS 2026Wahlpflichtbereich › Informatik
Information Systems Management
Information Systems Management (B. Sc.) - StuPO 2021
SS 2025Wahlpflichtbereich › Informatik
WS 2025/26Wahlpflichtbereich › Informatik
SS 2026Wahlpflichtbereich › Informatik

Miscellaneous

Not specified