Professional Documents
Culture Documents
Lecture 1 1
Lecture 1 1
What is a compiler?
Covering topics
● Introduction
● Language Processors
● Compiler
● Interpreter
● Questions?
Introduction
● Compiler
Data
Errors
● Interpreter
Program
Interpreter Output
Data
A language processing system
Source program
Preprocessor
Compiler
Assembler
– Lexical Analysis
– Parsing
– Semantic Analysis
– Code Optimization
– Code Generation
Basic Structure of Compiler
subject object
sentence
Basic Structure of Compiler
if-then-else-statement
Basic Structure of Compiler