6 EC
Semester 2, period 4
5062COMP6Y
Owner | Bachelor Informatica |
Coordinator | dr. C.U. Grelck |
Part of | Pre-master Software Engineering, year 1Bachelor Informatica, year 3Dubbele bachelor Wiskunde en Informatica, year 3 |
As implementations of programming languages compilers are integral parts of any computing system software stack. The more general task of compilers to transform structured text from one format to another is ubiquitous in all areas of computer science. Step-by-step the course covers all aspects of modern compiler design and implementation: lexical and syntactical analysis, context/type checking and inference, high-level code transformations/optimisations and target code generation
A model programming language named CiviC that exposes common imperative programming features, as found in languages such as C, Pascal or Java, serves as a case study throughout the course. Organised as a medium-scale software engineering project with milestones, etc, course participants develop a fully-fledged compiler for this language targeting a stack-based virtual machine very similar to the Java Virtual Machine.
Two guest lectures by renowned Amsterdam-based compiler experts touch upon the industrial and commercial aspects of compilers.
The course does not follow any specific text book. The following list summarises a number of interesting textbooks on various aspects of the course. While books are always a helpful source of background information, I do not expect participants of the course to buy any or all of these, nor do I receive revenues from any of these books.
Activiteit | Aantal uur |
Hoorcollege | 28 |
Laptopcollege | 32 |
Zelfstudie | 108 |
Programme's requirements concerning attendance (OER-B):
Additional requirements for this course:
Attendance during the lectures and labs is highly recommended, but strictly speaking not enforced by legal or organisational means. This is your responsibility!
As much other academic software the compiler construction framework we use throughout the practical part of the course is not well documented. We provide a life introduction during week 1. Attendance during these lectures and labs is essential for successfully passing the course.
Item and weight | Details |
Final grade | |
0.3 (30%) Weekly Assignments | Must be ≥ 5 |
0.6 (60%) CiviC Compiler Project | Must be ≥ 5 |
0.1 (10%) CiviC Compiler Report | Must be ≥ 5 |
CiviC AST Specification | Must be ≥ pass |
The manner of inspection will be communicated via the digitial learning environment.
Feedback for the weekly assignments is given during the labs including example solutions. For individual feedback contact the TAs during the labs.
Feedback for the CiviC Compiler Project is given by Simon Polstra on request by individual appointment.
Feedback for the CiviC Compiler Report is given by Clemens Grelck on request by individual appointment.
Elementary CiviC Programming and Familiarisation with Compiler Framework
Lexicographic Analysis
Syntactic Analysis
Semantic Analysis
Code Transformation and Optimisation
Code Generation
Code base of your CiviC compiler
Report describing the design and special features of your CiviC compiler
CiviC AST Specification
The Weekly Assignment 1 must be submitted individually. All other Weekly Assignments, the CiviC Compiler Project and the CiviC Compiler Report must be worked on in fixed teams of 2 students. The CiviC AST specification must be submitted individually and is only graded pass/fail.
Each Weekly Assignment counts 5% to the overall grade. The CiviC Compiler Implementation counts 60%, and the CiviC Compiler Report counts for the final 10%.
Over het algemeen geldt dat elke uitwerking die je inlevert ter verkrijging van een beoordeling voor een vak je eigen werk moet zijn, tenzij samenwerken expliciet door de docent is toegestaan. Het inzien of kopiëren van andermans werk (zelfs als je dat hebt gevonden bij de printer, in een openstaande directory of op een onbeheerde computer) of materiaal overnemen uit een boek, tijdschrift, website, code repository of een andere bron - ook al is het gedeeltelijk - en inleveren alsof het je eigen werk is, is plagiaat.
We juichen toe dat je het cursusmateriaal en de opdrachten met medestudenten bespreekt om het beter te begrijpen. Je mag bronnen op het web raadplegen om meer te weten te komen over het onderwerp en om technische problemen op te lossen, maar niet voor regelrechte antwoorden op opgaven. Als in een uitwerking gebruik is gemaakt van externe bronnen zonder dat een bronvermelding is vermeld (bijvoorbeeld in de rapportage of in commentaar in de code), dan kan dat worden beschouwd als plagiaat.
Deze regels zijn er om alle studenten een eerlijke en optimale leeromgeving aan te kunnen bieden. De verleiding kan groot zijn om te plagiëren als de deadline voor een opdracht nadert, maar doe het niet.
Elke vorm van plagiaat wordt bestraft. Als een student ernstige fraude heeft gepleegd, kan dat leiden tot het uitschrijven uit de Universiteit.
Zie voor meer informatie over het fraude- en plagiaatreglement van de Universiteit van Amsterdam: www.student.uva.nl
Weeknummer | Onderwerpen | Studiestof |
1 |
Introduction and Motivation, Compilers at a Glance, Compiler Framework |
|
2 | Lexicographic Analysis | |
3 | Syntactic Analysis | |
4 | Semantic Analysis | |
5 | Code Transformation and Optimisation | |
6 | Code Generation | |
7 | Slack for two guest lectures | |
8 | Labs and work on CiviC Compiler Project |
The schedule for this course is published on DataNose.
We have been working on a novel compiler construction framework for a few years, which will tested with a few groups of students this year.