INF5110 – Compiler Construction
Types and type checking Spring 2016
1 / 43
INF5110 Compiler Construction Types and type checking Spring 2016 - - PowerPoint PPT Presentation
INF5110 Compiler Construction Types and type checking Spring 2016 1 / 43 Outline 1. Types and type checking Intro Various types and their representation Equality of types Type checking 2 / 43 Outline 1. Types and type checking Intro
1 / 43
2 / 43
3 / 43
4 / 43
1Terminology rather fuzzy, and perhaps changed a bit over time. 5 / 43
6 / 43
7 / 43
8 / 43
9 / 43
10 / 43
11 / 43
12 / 43
13 / 43
14 / 43
15 / 43
16 / 43
17 / 43
3Again, it’s a implementor-centric, not user-centric view 18 / 43
19 / 43
20 / 43
21 / 43
4Let’s for the sake of the lecture, not distinguish conceptually between
22 / 43
5Actually, an identfier of the function is mentioned as well. 23 / 43
1
2
3 4
5
6
7
8
9
10
11
12
13
14
15
16
17
24 / 43
25 / 43
26 / 43
27 / 43
28 / 43
29 / 43
30 / 43
31 / 43
32 / 43
33 / 43
34 / 43
35 / 43
36 / 43
37 / 43
38 / 43
39 / 43
6In case (operator) overloading: that may complicate the picture slightly.
7one can, however, use grammars as specification of that abstract syntax
40 / 43
41 / 43
42 / 43
43 / 43