Compiler 1
Compiler 1
Chapter 1
Introduction
By Diriba Regasa (MSc)
The evolution of programming language
2
…
3
…
4
Machine language
5
Assemble language
6
High-level language
7
…
9
Language processors
10
…
11
…
An interpreter
12
…
13
…
14
…
16
…
17
…
Phase of compiler
18
Lexical Analysis
19
…
20
Syntax Analysis
• The Syntax analysis is the second stage. Here the provided input
string is scanned for the validation of the structure of the standard
grammar.
21
…
22
Semantic Analysis
23
Intermediate code generator
24
…
25
Code optimizer
26
Code generator
27
Symbol table
28
Questions
29
Compiler Construction Tools
30
…
• The most successful tools are those that hide the details of the
generation algorithm and produce components that can be
easily integrated into the remainder of the compiler.