SlideShare a Scribd company logo
7
Most read
9
Most read
11
Most read
single pass compiler and its architecture
SINGLE PASS COMPILER
Topic
Group Member
 Ramsha Naz 24
 Aqsa Habib 42
 Noor ul Ain 22
compiler
 A compiler is a computer program which helps you
transform source code written in a high-level
language into low-level machine language. It
translates the code written in one programming
language to some other language without changing
the meaning of the code.
Types of compiler
 Native code compiler.
 Cross compiler.
 Source to source compiler.
 Single pass compiler.
 Multi pass compiler.
 Thread code compiler.
 Incremental compiler.
 Source compiler.
Single pass compiler
Definition
 In computer programming, a one-pass compiler is
a compiler that passes through the parts of
each compilation unit only once, immediately
translating each part into its final machine code.
Architecture o f single pass compiler.
single pass compiler and its architecture
 Main stages of single pass compiler are lexical
analysis, syntactical analysis and code generator.
First, the lexical analysis scans the source code and
divides it into tokens. Every programming
language has a grammar. It represents the syntax
and legal statements of the language. Then, the
syntactical analysis determines the language
constructs described by the grammar. Finally, the
code generator generates the target code. Overall,
single pass compiler does not optimize the code.
Moreover, there is no intermediate code
generation.
Advantage
 It is more efficient then multi-pass compiler in the
compiler phases.
 It takes a minimum time to compile
 Memory consumption in single pass compiler is low.
 It is smaller and faster than multi-pass compiler
Disadvantage
 There is no code optimization.
 It compile less efficient program
 It has a limited scope.
 There is no intermediate code generation in single
pass compiler.
 Programming languages such as Pascal can be
implemented using a single pass compiler.
 we can’t backup and process, it again so grammar
should be limited or simplified.
single pass compiler and its architecture

More Related Content

PPT
basics of compiler design
PDF
14-Intermediate code generation - Variants of Syntax trees - Three Address Co...
PPTX
Compiler design
PPTX
Intermediate code generator
PPTX
Steps for c program execution
PPTX
Text Editor for System Software
PPTX
Operators in java
PPTX
Macro Processor
basics of compiler design
14-Intermediate code generation - Variants of Syntax trees - Three Address Co...
Compiler design
Intermediate code generator
Steps for c program execution
Text Editor for System Software
Operators in java
Macro Processor

What's hot (20)

PPT
Compiler Construction introduction
PPT
phases of a compiler
PPT
Compiler1
PDF
Java Presentation For Syntax
PPT
Bottom - Up Parsing
PPTX
Language processing activity
PDF
assembler-ppt.pdf
PPTX
Type checking compiler construction Chapter #6
PPTX
Chapter 5
PDF
UVM TUTORIAL;
PPTX
Packages in java
PPTX
LR(1) and SLR(1) parsing
PPTX
Phases of Compiler
PPTX
Phases of compiler
PPTX
Semantic analysis
PPSX
Spr ch-02
PDF
Ch3 4 regular expression and grammar
PDF
Java variable types
PPTX
Compiler design syntax analysis
PPT
Introduction to Compiler Construction
Compiler Construction introduction
phases of a compiler
Compiler1
Java Presentation For Syntax
Bottom - Up Parsing
Language processing activity
assembler-ppt.pdf
Type checking compiler construction Chapter #6
Chapter 5
UVM TUTORIAL;
Packages in java
LR(1) and SLR(1) parsing
Phases of Compiler
Phases of compiler
Semantic analysis
Spr ch-02
Ch3 4 regular expression and grammar
Java variable types
Compiler design syntax analysis
Introduction to Compiler Construction
Ad

Similar to single pass compiler and its architecture (20)

PPTX
CD module 1.pptx Introduction to compiler Design
PDF
Compiler type
PPTX
Unit2_CD.pptx more about compilation of the day
PPTX
Introduction to Compilers
PPTX
aditya malkani compiler.pptx
PPTX
Chapter 2 Program language translation.pptx
PPTX
Presentation
PPTX
Chapter 1.pptx compiler design lecture note
PPTX
compiler and their types
PPTX
Compiler Construction Lecture One .pptx
PPTX
Life cycle of a computer program
PDF
Language translators
PPTX
Compiler design slide share
DOC
Assembler
PDF
Compilerandinterpreterghhhjjjjjjjjnnn.pdf
PPTX
COMPILER DESIGN OPTIONS
PPTX
CD - CH1 - Introduction to compiler design.pptx
PPTX
Cd ch1 - introduction
PPTX
4_5802928814682016556.pptx
PPTX
Introduction to Compiler Design Structutre, Phases
CD module 1.pptx Introduction to compiler Design
Compiler type
Unit2_CD.pptx more about compilation of the day
Introduction to Compilers
aditya malkani compiler.pptx
Chapter 2 Program language translation.pptx
Presentation
Chapter 1.pptx compiler design lecture note
compiler and their types
Compiler Construction Lecture One .pptx
Life cycle of a computer program
Language translators
Compiler design slide share
Assembler
Compilerandinterpreterghhhjjjjjjjjnnn.pdf
COMPILER DESIGN OPTIONS
CD - CH1 - Introduction to compiler design.pptx
Cd ch1 - introduction
4_5802928814682016556.pptx
Introduction to Compiler Design Structutre, Phases
Ad

More from noor ul ain (6)

PPTX
Calculator.ppt Andriod Application topic
PPTX
pros and Cons of Globalization
PPTX
Superscalar processor
PPTX
presentation of electronics
PPTX
Presentation of itc
PPTX
Pak studies .
Calculator.ppt Andriod Application topic
pros and Cons of Globalization
Superscalar processor
presentation of electronics
Presentation of itc
Pak studies .

Recently uploaded (20)

PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Construction Project Organization Group 2.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Geodesy 1.pptx...............................................
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
OOP with Java - Java Introduction (Basics)
PDF
PPT on Performance Review to get promotions
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
additive manufacturing of ss316l using mig welding
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Digital Logic Computer Design lecture notes
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Construction Project Organization Group 2.pptx
Lecture Notes Electrical Wiring System Components
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Mechanical Engineering MATERIALS Selection
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Geodesy 1.pptx...............................................
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
OOP with Java - Java Introduction (Basics)
PPT on Performance Review to get promotions
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Automation-in-Manufacturing-Chapter-Introduction.pdf
additive manufacturing of ss316l using mig welding
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Internet of Things (IOT) - A guide to understanding
Digital Logic Computer Design lecture notes

single pass compiler and its architecture

  • 3. Group Member  Ramsha Naz 24  Aqsa Habib 42  Noor ul Ain 22
  • 4. compiler  A compiler is a computer program which helps you transform source code written in a high-level language into low-level machine language. It translates the code written in one programming language to some other language without changing the meaning of the code.
  • 5. Types of compiler  Native code compiler.  Cross compiler.  Source to source compiler.  Single pass compiler.  Multi pass compiler.  Thread code compiler.  Incremental compiler.  Source compiler.
  • 7. Definition  In computer programming, a one-pass compiler is a compiler that passes through the parts of each compilation unit only once, immediately translating each part into its final machine code.
  • 8. Architecture o f single pass compiler.
  • 10.  Main stages of single pass compiler are lexical analysis, syntactical analysis and code generator. First, the lexical analysis scans the source code and divides it into tokens. Every programming language has a grammar. It represents the syntax and legal statements of the language. Then, the syntactical analysis determines the language constructs described by the grammar. Finally, the code generator generates the target code. Overall, single pass compiler does not optimize the code. Moreover, there is no intermediate code generation.
  • 11. Advantage  It is more efficient then multi-pass compiler in the compiler phases.  It takes a minimum time to compile  Memory consumption in single pass compiler is low.  It is smaller and faster than multi-pass compiler
  • 12. Disadvantage  There is no code optimization.  It compile less efficient program  It has a limited scope.  There is no intermediate code generation in single pass compiler.  Programming languages such as Pascal can be implemented using a single pass compiler.  we can’t backup and process, it again so grammar should be limited or simplified.