Passes
2/4/2017 1
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
Single Pass
2/4/2017 2
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
Contd.
2/4/2017 3
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
Two Pass
2/4/2017 4
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
Comparison
2/4/2017 5
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
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
Contd…..
2/4/2017 7
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
Load and Go
2/4/2017 8
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
Contd….
2/4/2017 9
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
Debugging
2/4/2017 10
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN
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
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
• 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
CONTD…
• 1 Ada compilers
• 2 ALGOL compilers
• 3 Assemblers (Intel *86)
• 4 Assemblers (Motorola 68*)
• 5 Assemblers (Zilog Z80)
• 6 Assemblers (other)
• 7 BASIC Compilers
2/4/2017 14
ANKUR SRIVASTAVA JETGI ASSISTANT
PROFESSOR COMPILER DESIGN

More Related Content

PPT
Bnf and ambiquity
PDF
201505 CSE340 Lecture 04
PDF
201505 CSE340 Lecture 03
PDF
The Scheme Language -- Using it on the iPhone
PPTX
Modeling Style and Delay Model of VHDL By Ap
PPTX
Semantics analysis
PPT
Classification of Compilers
PPTX
Bnf and ambiquity
201505 CSE340 Lecture 04
201505 CSE340 Lecture 03
The Scheme Language -- Using it on the iPhone
Modeling Style and Delay Model of VHDL By Ap
Semantics analysis
Classification of Compilers

Viewers also liked (16)

PDF
Compiler unit 1
PPTX
Compiler Chapter 1
PDF
Introduction to Functional Languages
PPT
Cd2 [autosaved]
PPT
Introduction to Compiler Construction
PPT
Minimization of dfa
PPTX
compiler and their types
PPTX
Validation based protocol
PDF
Lecture 01 introduction to compiler
PPT
Compiler Design Basics
DOC
Compiler Design(NANTHU NOTES)
PPTX
Phases of Compiler
PPT
Compiler Design
PPT
What is Compiler?
Compiler unit 1
Compiler Chapter 1
Introduction to Functional Languages
Cd2 [autosaved]
Introduction to Compiler Construction
Minimization of dfa
compiler and their types
Validation based protocol
Lecture 01 introduction to compiler
Compiler Design Basics
Compiler Design(NANTHU NOTES)
Phases of Compiler
Compiler Design
What is Compiler?
Ad

More from BBDITM LUCKNOW (13)

PPT
Unit 5 cspc
PPT
Unit 4 cspc
PPT
Unit3 cspc
PPT
Cse ppt 2018
PPT
Binary system ppt
PPT
Unit 4 ca-input-output
PPTX
Unit 3 ca-memory
PPT
Unit 2 ca- control unit
PPTX
Unit 1 ca-introduction
PDF
Compiler unit 4
PDF
Compiler unit 2&3
PDF
Compiler unit 5
PDF
Cspc final
Unit 5 cspc
Unit 4 cspc
Unit3 cspc
Cse ppt 2018
Binary system ppt
Unit 4 ca-input-output
Unit 3 ca-memory
Unit 2 ca- control unit
Unit 1 ca-introduction
Compiler unit 4
Compiler unit 2&3
Compiler unit 5
Cspc final
Ad

Recently uploaded (20)

PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
IGGE1 Understanding the Self1234567891011
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
Computer Architecture Input Output Memory.pptx
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
20th Century Theater, Methods, History.pptx
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
IGGE1 Understanding the Self1234567891011
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Practical Manual AGRO-233 Principles and Practices of Natural Farming
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Cambridge-Practice-Tests-for-IELTS-12.docx
My India Quiz Book_20210205121199924.pdf
Computer Architecture Input Output Memory.pptx
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Chinmaya Tiranga quiz Grand Finale.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
20th Century Theater, Methods, History.pptx
AI-driven educational solutions for real-life interventions in the Philippine...
A powerpoint presentation on the Revised K-10 Science Shaping Paper
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
FORM 1 BIOLOGY MIND MAPS and their schemes

Passescd

  • 1. Passes 2/4/2017 1 ANKUR SRIVASTAVA JETGI ASSISTANT PROFESSOR COMPILER DESIGN
  • 2. Single Pass 2/4/2017 2 ANKUR SRIVASTAVA JETGI ASSISTANT PROFESSOR COMPILER DESIGN
  • 3. Contd. 2/4/2017 3 ANKUR SRIVASTAVA JETGI ASSISTANT PROFESSOR COMPILER DESIGN
  • 4. Two Pass 2/4/2017 4 ANKUR SRIVASTAVA JETGI ASSISTANT PROFESSOR COMPILER DESIGN
  • 5. Comparison 2/4/2017 5 ANKUR SRIVASTAVA JETGI ASSISTANT PROFESSOR COMPILER DESIGN
  • 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
  • 7. Contd….. 2/4/2017 7 ANKUR SRIVASTAVA JETGI ASSISTANT PROFESSOR COMPILER DESIGN
  • 8. Load and Go 2/4/2017 8 ANKUR SRIVASTAVA JETGI ASSISTANT PROFESSOR COMPILER DESIGN
  • 9. Contd…. 2/4/2017 9 ANKUR SRIVASTAVA JETGI ASSISTANT PROFESSOR COMPILER DESIGN
  • 10. Debugging 2/4/2017 10 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
  • 14. CONTD… • 1 Ada compilers • 2 ALGOL compilers • 3 Assemblers (Intel *86) • 4 Assemblers (Motorola 68*) • 5 Assemblers (Zilog Z80) • 6 Assemblers (other) • 7 BASIC Compilers 2/4/2017 14 ANKUR SRIVASTAVA JETGI ASSISTANT PROFESSOR COMPILER DESIGN