Interpretation and Compilation (2013/2014) - Departamento de Informática
Description

This course aims at teaching solid knowledge and concepts in the design and implementation of programming languages. This goal is reached by the systematic study of the syntax, semantics and pragmatics of programming language.


Objectives

This course aims at teaching solid knowledge and concepts in the design and implementation of programming languages. This goal is reached by the systematic study of the syntax, semantics and pragmatics of programming language.

Knowledge

1.To know the architecture and techniques used in the design and implementation of interpreters, compilers and type systems

2.To know the essential components of the design of programming languages and corresponding semantics

3.To define programming languages by composition of base elements

Application

4.To define algorithms of the abstract representation of programs

5.To describe language semantics by interpreting, compiler and verification algorithms

6.To design and implement compiler procedures targeting concrete virtual machines

Soft-Skills

7.To reason about complex systems at different levels of abstraction

8.To design general purpose designs based on first principles


Syllabus

A.Principles

1.Programming Language Syntax

2.Programming Language Semantics

3.Interpretation levels

B.Program interpretation

1.Expressions and values; Definitions and environments

2.State and references; memory-environment model

3.Functional abstraction; first-class and higher order functions

4.Recursive definitions

5.Structured values: records and recursive values

6.Objects and classes: Objects represented with records and closures

C.Type Systems

1.Principles, goals and limitations of static analysis methods

2.Simple type systems: functional types

3.Verification and inference algorithms

D.Compilers and Runtime support systems

1.Compiler architecture

2.Runtime support systems

3.Syntax driven code transformation

4.Code generation to intermediate languages (CLR, LLVM)


Bibliography

- “Concepts in Programming Languages”, John C. Mitchell, Cambridge University Press. ISBN 0 521 78098 5

- “Essentials of Programming Languages”, Daniel Friedman, Mitchell Wand, Christopher Haynes, MIT Press.

- “Compiling for the .Net Common Language Runtime (Clr) (.NET Series)”, John Gough, Prentice Hall PTR

- “Modern Compiler Implementation in Java” Andrew W. Appel, Cambridge University Press

- “The Study of Programming Languages”, Ryan Stansifer, Prentice Hall International Edition.


Student work
  Hours per credit 28
  Hours per week Weeks Hours
Labs and practical classes 2 13 26.0
Lectures 2 17 33.0
Assessment   8.0
Self study   30.0
Tutorial supervision   2.0
Project   70.0
Total hours 169
ECTS 6.0