TDT4205 - Compiler Construction


Examination arrangement

Examination arrangement: Portfolio assessment
Grade: Letters

Evaluation form Weighting Duration Examination aids Grade deviation
work 50/100
Home examination 50/100 4 hours

Course content

Compilers are a prerequisite for constructing modern software. Compiler construction is a field of computer technology that early reached maturity, with a sound theoretical basis. Elements of this technology are employed in most areas where one does a thorough analysis of texts on a computer. The course discusses grammars, lexical and syntactic analysis, semantic analysis, optimizations, code generation, interpreters and abstract machines, linkers and run time systems. The concrete structure of a compiler that generates code for a real computer is studied in some detail.

Learning outcome

To give a thorough knowledge of techniques for the construction of compilers (programming language translators) and some insight in how to build systems software, more generally.

Develop a thorough understanding of how modern compilers work.

Learning methods and activities

Lectures and exercises. The course will be lecture in English.

Compulsory assignments

  • Exercises

Further on evaluation

Portfolio assessment is the basis for the grade in the course. The portfolio includes a final written exam (50%) and exercises (50%). The results for the parts are given in %-scores, while the entire portfolio is assigned a letter grade.

If there is a re-sit examination, the examination form may change from written to oral.

In the case that the student receives an F/Fail as a final grade after both ordinary and re-sit exam, then the student must retake the course in its entirety. Submitted work that counts towards the final grade will also have to be retaken.

Specific conditions

Exam registration requires that class registration is approved in the same semester. Compulsory activities from previous semester may be approved by the department.

Course materials

Will be specified at the start of the course.

Credit reductions

Course code Reduction From To
SIF8045 7.5
More on the course



Version: 1
Credits:  7.5 SP
Study level: Third-year courses, level III


Term no.: 1
Teaching semester:  SPRING 2021

No.of lecture hours: 3
Lab hours: 2
No.of specialization hours: 7

Language of instruction: English, Norwegian

Location: Trondheim

Subject area(s)
  • Informatics
  • Technological subjects
Contact information
Course coordinator:

Department with academic responsibility
Department of Computer Science



Examination arrangement: Portfolio assessment

Term Status code Evaluation form Weighting Examination aids Date Time Digital exam Room *
Summer UTS work 50/100
Room Building Number of candidates
Spring ORD work 50/100
Room Building Number of candidates
Summer UTS Home examination 50/100 INSPERA
Room Building Number of candidates
Spring ORD Home examination 50/100

Release 2021-06-02

Submission 2021-06-02

Release 09:00

Submission 13:00

Room Building Number of candidates
  • * The location (room) for a written examination is published 3 days before examination date. If more than one room is listed, you will find your room at Studentweb.

For more information regarding registration for examination and examination procedures, see "Innsida - Exams"

More on examinations at NTNU