SlideShare a Scribd company logo
1 of 12
COMPILER V/S
INTERPRETER
BY ANUJYOTI DE
STREAM = INFORMATION TECHNOLOGY(2nd Year)
UNIVERSITY ROLL =11000222006
SUBJECT = COMPUTER ORGANIZATION (PCC CS-302)
INTRODUCTION ( PART -1)
WHAT IS COMPILER?
 A Compiler is a piece of code that translates the high level language into
machine language.
 When a user writes a code in high level language and wants it to execute , a
specific compiler which is designed is used before it will executed.
 The Compiler scans the entire program first and then translates it into
machine code which will be executed by computer processor and the
corresponding tasks will be performed.
INTRODUCTION (PART-2)
WHAT IS INTERPRETER ?
 Interpreters are not much different than compilers.
 They also converted high level language into machine readable binary
equivalents.
 Each time when an interpreter gets a high level language code to be
executed, it converts the code into an intermediate code before converting it
into machine code.
 Each part of code is interpreted and then execute separately in a sequence
and if any error is found in the code it will stop the interpretation of the
code without translating the next set of codes.
DESCRIPTION
WORKING PROCESS OF COMPILER
ADVANTAGES OF COMPILER
 Since Compiler converts the program to native code of target
machine(Object Code),faster performance can be expected.
 There is a scope for code optimization. Hence ,it increases the quality and
efficiency of code by making some modifications in the code.
EXAMPLE CODE FOR COMPILER
WORKING PROCESS OF INTERPRETER
ADVANTAGES OF INTERPRETER
 Process of execution can be done in a single stage . There is no need of
compilation stage.
 Alteration of codes possible during runtime.
 Really useful for debugging the codes(because source code execution can be
analyzed in an IDE).
 Facilitates interactive code development.
EXAMPLE CODE FOR INTERPRETER
COMPILER V/S INTERPRETER
CONCLUSION
 With the help of this PowerPoint presentation, we clearly understand the
Definitions, Advantages, Working principle and Example code of Compiler and
Interpreter.
 This presentation also helps to understand the key differences between
Compiler and Interpreter.
 It helps to understand the topic COMPILER V/S INTERPRETER in a very easy
way and also helps to gain some knowledge regarding this topic.
REFERENCES
 www.google.com
 www.Javatpoint.com
 www.Geeksforgeeks.org

More Related Content

Similar to COMPUTER ORGANIZATION.pptxbkobuujghuujjj

La 5 Pl Translator
La 5   Pl TranslatorLa 5   Pl Translator
La 5 Pl Translator
Cma Mohd
 
Computer assignment for grade 9
Computer assignment for grade  9Computer assignment for grade  9
Computer assignment for grade 9
nahomyitbarek
 
Source-to-Source Compiler
Source-to-Source CompilerSource-to-Source Compiler
Source-to-Source Compiler
Mintoo Jakhmola
 

Similar to COMPUTER ORGANIZATION.pptxbkobuujghuujjj (20)

Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide share
 
Translators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreterTranslators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreter
 
Ch 1.pptx
Ch 1.pptxCh 1.pptx
Ch 1.pptx
 
WEBSITE DEVELOPMENT
WEBSITE DEVELOPMENTWEBSITE DEVELOPMENT
WEBSITE DEVELOPMENT
 
Pros and cons of c as a compiler language
  Pros and cons of c as a compiler language  Pros and cons of c as a compiler language
Pros and cons of c as a compiler language
 
Chapter1pdf__2021_11_23_10_53_20.pdf
Chapter1pdf__2021_11_23_10_53_20.pdfChapter1pdf__2021_11_23_10_53_20.pdf
Chapter1pdf__2021_11_23_10_53_20.pdf
 
Compiler vs interpreter
Compiler vs interpreter Compiler vs interpreter
Compiler vs interpreter
 
Chapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptxChapter 2 Program language translation.pptx
Chapter 2 Program language translation.pptx
 
La 5 Pl Translator
La 5   Pl TranslatorLa 5   Pl Translator
La 5 Pl Translator
 
Computer basics
Computer basicsComputer basics
Computer basics
 
Computer assignment for grade 9
Computer assignment for grade  9Computer assignment for grade  9
Computer assignment for grade 9
 
Chapter#01 cc
Chapter#01 ccChapter#01 cc
Chapter#01 cc
 
unit1pdf__2021_12_14_12_37_34.pdf
unit1pdf__2021_12_14_12_37_34.pdfunit1pdf__2021_12_14_12_37_34.pdf
unit1pdf__2021_12_14_12_37_34.pdf
 
Comso c++
Comso c++Comso c++
Comso c++
 
Assembler
AssemblerAssembler
Assembler
 
Source-to-Source Compiler
Source-to-Source CompilerSource-to-Source Compiler
Source-to-Source Compiler
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
 
Introduction to compiler development
Introduction to compiler developmentIntroduction to compiler development
Introduction to compiler development
 
Lect-01.ppt
Lect-01.pptLect-01.ppt
Lect-01.ppt
 
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdfINTRODUCTION TO C PROGRAMMING MATERIAL.pdf
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
 

Recently uploaded

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

COMPUTER ORGANIZATION.pptxbkobuujghuujjj

  • 1. COMPILER V/S INTERPRETER BY ANUJYOTI DE STREAM = INFORMATION TECHNOLOGY(2nd Year) UNIVERSITY ROLL =11000222006 SUBJECT = COMPUTER ORGANIZATION (PCC CS-302)
  • 2. INTRODUCTION ( PART -1) WHAT IS COMPILER?  A Compiler is a piece of code that translates the high level language into machine language.  When a user writes a code in high level language and wants it to execute , a specific compiler which is designed is used before it will executed.  The Compiler scans the entire program first and then translates it into machine code which will be executed by computer processor and the corresponding tasks will be performed.
  • 3. INTRODUCTION (PART-2) WHAT IS INTERPRETER ?  Interpreters are not much different than compilers.  They also converted high level language into machine readable binary equivalents.  Each time when an interpreter gets a high level language code to be executed, it converts the code into an intermediate code before converting it into machine code.  Each part of code is interpreted and then execute separately in a sequence and if any error is found in the code it will stop the interpretation of the code without translating the next set of codes.
  • 5. ADVANTAGES OF COMPILER  Since Compiler converts the program to native code of target machine(Object Code),faster performance can be expected.  There is a scope for code optimization. Hence ,it increases the quality and efficiency of code by making some modifications in the code.
  • 6. EXAMPLE CODE FOR COMPILER
  • 7. WORKING PROCESS OF INTERPRETER
  • 8. ADVANTAGES OF INTERPRETER  Process of execution can be done in a single stage . There is no need of compilation stage.  Alteration of codes possible during runtime.  Really useful for debugging the codes(because source code execution can be analyzed in an IDE).  Facilitates interactive code development.
  • 9. EXAMPLE CODE FOR INTERPRETER
  • 11. CONCLUSION  With the help of this PowerPoint presentation, we clearly understand the Definitions, Advantages, Working principle and Example code of Compiler and Interpreter.  This presentation also helps to understand the key differences between Compiler and Interpreter.  It helps to understand the topic COMPILER V/S INTERPRETER in a very easy way and also helps to gain some knowledge regarding this topic.