Beruflich Dokumente
Kultur Dokumente
Source Target
Pgm Pgm
Compiler
Error
Message
Interpreter
An Interpreter directly executes instructions written in a
programming or scripting language without previously converting
them to an object code or machine code.
Error Handler
Translation of a statement
THE GROUPING OF PHASES
● Each phases deals with the logical organization of a compiler.
● Activities of several phases may be grouped together into a pass that reads an
input file and writes an output file.
● The front-end phases of lexical analysis, syntax analysis, semantic analysis, and
intermediate code generation might be grouped together into one pass.
● Code optimization might be an optional pass.
● A back end pass consisting of code generation for a particular target machine.
Compiler Construction Tools
● Scanner generators [Lexical Analysis]
● It generates intermediate code with three address format from the input that
consists of a parse tree.
● Each node of the parse tree is associated with one or more translations.
Data - Flow Analysis Engines
● Data-flow analysis engines facilitate the gathering of information about how
values are transmitted from one part of a program to each other part.