Passes in the compilers are the essential part in any system as it works with Phases.
Two main types of compiler are:- One pass or single pass and Two pass or multi pass compilers.
6. Multi pass
• Passes
1. Several phases of compilers are grouped into passes.
2 . Other passes generates an explicit output file.
3. In each pass the whole input file/source is processed.
Syntax Analyser
Lexical analyser Intermediate code generator
--Semantic analyser
2/4/2017 6
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
11. Bootstraping
• Bootstrapping is the process of writing a compiler
(or assembler) in the source programming language
that it intends to compile.
• Many compilers for many programming languages
are bootstrapped, including compilers for-
• BASIC, Algol, C, D, Pascal, PL/I, Factor, Haskell,
Modula-2, Oberon, OCaml, Common Lisp, Scheme,
Go, Java, Rust, Python, Scala, Nim, Eiffel, and more.
2/4/2017 11
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
12. List Of Compilers
• Compiler is program that translate (either from source code,
byte code to another source code, byte code, or binary), for
example:
• gcc
• clang
• javac
• go (compiler)
2/4/2017 12
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
13. • Interpreter is program that executes source
code or byte code, for example:
• ruby (interpreter)
• python (interpreter)
• php (interpreter)
2/4/2017 13
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN