The course is divided into three modules and includes lectures, individual assignments (both theoretical and practical programming assignments), seminars, and an individual project.
FID3006 Compilers and Execution Environments 7.5 credits
In this course, you will learn about compiler theory, for instance regular expressions, parsing theory, optimization algorithms, code generation strategies, garbage collection, and more. Moreover, you will gain significant practical experience in designing and implementing a minimal but complete compiler from scratch. Moreover, in this doctoral course, you will also conduct a small project on your own, relating to current research within the area.
Information per course offering
Information for Autumn 2024 Start 28 Oct 2024 programme students
- Course location
KTH Campus
- Duration
- 28 Oct 2024 - 13 Jan 2025
- Periods
- P2 (7.5 hp)
- Pace of study
50%
- Application code
51087
- Form of study
Normal Daytime
- Language of instruction
English
- Course memo
- Course memo is not published
- Number of places
Places are not limited
- Target group
- No information inserted
- Planned modular schedule
- [object Object]
- Schedule
- Schedule is not published
- Part of programme
- No information inserted
Contact
David Broman (dbro@kth.se)
Course syllabus as PDF
Please note: all information from the Course syllabus is available on this page in an accessible format.
Course syllabus FID3006 (Autumn 2021–)Content and learning outcomes
Course disposition
Course contents
The course covers technologies for implementation of programming languages by means of compilers, both for real and virtual execution environments, technologies to read, understand, translate, improve as well as execute programs:
- To read programs: lexical analysis and syntax analysis. Finite state machines, regular expression context free grammars, LL and LR-parsing.
- To understand programs: semantic analysis, type checking.
- To translate programs: machines and instructions.
- Intermediary code, choice of instructions, conventions for procedure calls.
- To improve programs: machine independent optimisations; computer-oriented optimisations (register allocation, scheduling of instructions).
- To execute programs: virtual execution environments and runtime systems. Memory management, garbage collection, to load and link programs, just-in-time compilation.
- To apply and reason about research within the area of compilers and programming languages: to conduct a smaller individual project where current research articles within the area are used, where the project can (but does not have to) be related to the doctoral student’s own research.
Intended learning outcomes
After passing the course, the doctoral student shall be able to
- design and implement programs with lexical, syntactic, and semantic analysis
- construct program code for the generation of machine code for non-trivial high-level programs
- test, evaluate, and implement methods for optimizing programs
- apply and reason about current research within the area
Literature and preparations
Specific prerequisites
Recommended prerequisites
Knowledge in basic computer engineering/architecture, algorithms, and data structures. Very good programming experience in one or more high-level languages.
Equipment
Literature
Information on course literature is given in the course memo.
Examination and completion
If the course is discontinued, students may request to be examined during the following two academic years.
Grading scale
Examination
- EXA1 - Examination, 7.5 credits, grading scale: P, F
Based on recommendation from KTH’s coordinator for disabilities, the examiner will decide how to adapt an examination for students with documented disability.
The examiner may apply another examination format when re-examining individual students.
The course is examined using hand-in assignments, seminars, peer reviewing tasks, and a final project assignment.
Other requirements for final grade
The doctoral student receives a pass grade (P) on the FID3006 course if they complete the examination (passing criteria is given in the course memo of FID3006) as well as finish and present (orally and in writing) a smaller individual project at the end of the course.
Opportunity to complete the requirements via supplementary examination
Opportunity to raise an approved grade via renewed examination
Examiner
Ethical approach
- All members of a group are responsible for the group's work.
- In any assessment, every student shall honestly disclose any help received and sources used.
- In an oral assessment, every student shall be able to present and answer questions about the entire assignment and solution.
Further information
Course room in Canvas
Offered by
Main field of study
Education cycle
Add-on studies
Contact
Supplementary information
This course follows the same structure as the Master’s level course ID2202, but where the doctoral level course also includes a research related project assignment and has higher requirements for passing the course modules (the details are specified in the course memo for FID3006).