SlideShare a Scribd company logo
5
Most read
12
Most read
16
Most read
Welcome to our 
Presentation 
Topic : COMPILER vs INTERPRETER.
Group Name: Gravity 
Group Member: 
Md. Alamgir Hossen Id:121-15-1761 
Md. Abdus Sami Id:121-15-1712 
Animesh Bhattacharjee Id:121-15-1680 
Mushfiqur Rahman Id:121-16-1793
What is Compiler? 
Compiler: 
A compiler is a piece of code that translates the high level language into 
machine language. When a user writes a code in a high level language such 
as Java and wants it to execute, a specific compiler which is designed for 
Java is used before it will be executed. The compiler scans the entire program 
first and then translates it into machine code which will be executed by the 
computer processor and the corresponding tasks will be performed. 
Shown in the figure is basic outline of the compilation process, here program 
written in higher level language is known as source program and the 
converted one is called object program.
Compiler working Process
Compiler code 
 Here is a compiler code example 
that run “HELLO WORD” 
 If you create any error in code 
then out not found or get error 
message.
What is interpreter? 
Interpreters: 
Interpreters are not much different than compilers. They also convert the 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 the machine code. Each part of the code is interpreted and then execute 
separately in a sequence and an error is found in a part of the code it will stop the 
interpretation of the code without translating the next set of the codes. 
Outlining the basic working of the interpreter the above figure shows that first a source code is 
converted to an intermediate form and then that is executed by the interpreter.
Interpreter Code Example
Interpret Working Process
COMPILER vs INTERPRETER 
A Compiler and Interpreter both carry out the same purpose – 
convert a high level language (like C, Java) instructions into the 
binary form which is understandable by computer hardware. They 
are the software used to execute the high level programs and codes 
to perform various tasks. Specific compilers/interpreters are 
designed for different high level languages. However both compiler 
and interpreter have the same objective but they differ in the way 
they accomplish their task i.e. convert high level language into 
machine language. Through this article we will talk about the basic 
working of both and distinguish the basic difference between 
compiler and interpreter. Before going through differences, keep in 
mind the following technical terms.
COMPILER vs INTERPRETER 
Compile time: – The time taken to compile a program. 
Run time: – The time taken for executing a program. 
Source code: - The program in its user written form of the language. Source 
code is given as input to the compiler. 
Object code: - Is actually the machine code which is obtained by converting 
source code. The computer can read and execute machine code directly. An 
object code is also known as binary code / machine code.
COMPILER vs INTERPRETER 
So the primary difference between a 
compiler and interpreter is in the way a 
program is executed. Any one serious 
about programming should understand 
the working of compilers, interpreters and 
the differences between them. So here 
trying to outline generic differences 
between compiling and interpreting 
(compilers vs interpreters).
Short Different
Advantages of using compiler 
 Since compiler converts the program to native code of the target machine 
(object code), faster performance can be expected. 
 There is a scope for code optimization.
Advantages of using interpreter 
 Process of execution can be done in a single stage. There is no need of a 
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.
That’s all 
Any Question
Thanks to All for 
staying with us.

More Related Content

What's hot (20)

PPT
Language translator
asmakh89
 
PPT
Assembler
manpreetgrewal
 
PPTX
Programming languages
www.myassignmenthelp.net
 
PPTX
Introduction to programming
Neeru Mittal
 
PPT
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
PPTX
Types of Programming Languages
Juhi Bhoyar
 
PPSX
Programming languages
vito_carleone
 
PPT
Lect 1. introduction to programming languages
Varun Garg
 
PPT
Basics of C programming
avikdhupar
 
PPTX
C language ppt
Ğäùråv Júñêjå
 
PPT
Introduction to compiler
Abha Damani
 
PPTX
Programming Fundamentals lecture 1
REHAN IJAZ
 
PPTX
Programming in C Presentation upto FILE
Dipta Saha
 
PPTX
Algorithm and pseudo codes
hermiraguilar
 
PPTX
Introduction to problem solving in C
Diwakar Pratap Singh 'Deva'
 
PPTX
Translators(Compiler, Assembler) and interpreter
baabtra.com - No. 1 supplier of quality freshers
 
PDF
Object oriented programming c++
Ankur Pandey
 
PPTX
Basics of JAVA programming
Elizabeth Thomas
 
PPTX
C tokens
Manu1325
 
PPTX
Computer Language Translator
Ranjeet Kumar
 
Language translator
asmakh89
 
Assembler
manpreetgrewal
 
Programming languages
www.myassignmenthelp.net
 
Introduction to programming
Neeru Mittal
 
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
Types of Programming Languages
Juhi Bhoyar
 
Programming languages
vito_carleone
 
Lect 1. introduction to programming languages
Varun Garg
 
Basics of C programming
avikdhupar
 
C language ppt
Ğäùråv Júñêjå
 
Introduction to compiler
Abha Damani
 
Programming Fundamentals lecture 1
REHAN IJAZ
 
Programming in C Presentation upto FILE
Dipta Saha
 
Algorithm and pseudo codes
hermiraguilar
 
Introduction to problem solving in C
Diwakar Pratap Singh 'Deva'
 
Translators(Compiler, Assembler) and interpreter
baabtra.com - No. 1 supplier of quality freshers
 
Object oriented programming c++
Ankur Pandey
 
Basics of JAVA programming
Elizabeth Thomas
 
C tokens
Manu1325
 
Computer Language Translator
Ranjeet Kumar
 

Viewers also liked (20)

PPT
Compiler Design
Mir Majid
 
DOC
compiler vs interpreter
Faculty of Science , portsaid Univeristy
 
PPTX
Interpreter
IGZ Software house
 
PPT
Lexical analyzer
Ashwini Sonawane
 
PDF
Phases of the Compiler - Systems Programming
Mukesh Tekwani
 
PPTX
Phases of Compiler
Tanzeela_Hussain
 
PPTX
Compiler Chapter 1
Huawei Technologies
 
PPT
what is compiler and five phases of compiler
adilmehmood93
 
PPTX
Specification-of-tokens
Dattatray Gandhmal
 
PPT
Compilers and interpreters
RAJU KATHI
 
PPT
Compiler Design Basics
Akhil Kaushik
 
PPT
What is Compiler?
Huawei Technologies
 
PPT
Software tools
ravindravekariya
 
PPTX
Lecture 11 semantic analysis 2
Iffat Anjum
 
PPT
Module 11
bittudavis
 
PPT
Lex (lexical analyzer)
Sami Said
 
PPTX
Top down and botttom up Parsing
Gerwin Ocsena
 
PPT
System software
Senthil Kanth
 
PPTX
Compiler vs interpreter
Kamal Tamang
 
Compiler Design
Mir Majid
 
Interpreter
IGZ Software house
 
Lexical analyzer
Ashwini Sonawane
 
Phases of the Compiler - Systems Programming
Mukesh Tekwani
 
Phases of Compiler
Tanzeela_Hussain
 
Compiler Chapter 1
Huawei Technologies
 
what is compiler and five phases of compiler
adilmehmood93
 
Specification-of-tokens
Dattatray Gandhmal
 
Compilers and interpreters
RAJU KATHI
 
Compiler Design Basics
Akhil Kaushik
 
What is Compiler?
Huawei Technologies
 
Software tools
ravindravekariya
 
Lecture 11 semantic analysis 2
Iffat Anjum
 
Module 11
bittudavis
 
Lex (lexical analyzer)
Sami Said
 
Top down and botttom up Parsing
Gerwin Ocsena
 
System software
Senthil Kanth
 
Compiler vs interpreter
Kamal Tamang
 
Ad

Similar to Compiler vs Interpreter-Compiler design ppt. (20)

PPTX
COMPUTER ORGANIZATION.pptxbkobuujghuujjj
AnujyotiDe
 
PDF
compilervsinterpreter-161008074915.pdf
HarshaVardhan196987
 
PPTX
Compiler vs interpreter
HarshaVardhan196987
 
PPTX
COMPILER DESIGN OPTIONS
sonalikharade3
 
PPTX
Compiler design slide share
Sudhaa Ravi
 
PDF
Language processing system.pdf
RakibRahman19
 
DOC
Assembler
Suneel Dogra
 
PPTX
Presentation
Zarqa Khalid
 
PPTX
Chapter 1.pptx compiler design lecture note
adugnanegero
 
PPTX
Software programming and development
Ali Raza
 
DOCX
Compliers and interpreters
shivasdhtsvmic
 
DOCX
COMPILER DESIGN.docx
Revathiparamanathan
 
PPTX
Insight into progam execution ppt
Keerty Smile
 
PPTX
Chapter 1 Introduction.pptxhjgjghjghjhjhjhgjmjkhgk
Shemse Shukre
 
PDF
Chapter1pdf__2021_11_23_10_53_20.pdf
DrIsikoIsaac
 
PDF
Chapter1.pdf
tharwatabdulhmed
 
DOCX
Computer assignment for grade 9
nahomyitbarek
 
PDF
Introduction to programming language (basic)
nharsh2308
 
PPT
Lect-01.ppt
KamranAli649587
 
PPT
La 5 Pl Translator
Cma Mohd
 
COMPUTER ORGANIZATION.pptxbkobuujghuujjj
AnujyotiDe
 
compilervsinterpreter-161008074915.pdf
HarshaVardhan196987
 
Compiler vs interpreter
HarshaVardhan196987
 
COMPILER DESIGN OPTIONS
sonalikharade3
 
Compiler design slide share
Sudhaa Ravi
 
Language processing system.pdf
RakibRahman19
 
Assembler
Suneel Dogra
 
Presentation
Zarqa Khalid
 
Chapter 1.pptx compiler design lecture note
adugnanegero
 
Software programming and development
Ali Raza
 
Compliers and interpreters
shivasdhtsvmic
 
COMPILER DESIGN.docx
Revathiparamanathan
 
Insight into progam execution ppt
Keerty Smile
 
Chapter 1 Introduction.pptxhjgjghjghjhjhjhgjmjkhgk
Shemse Shukre
 
Chapter1pdf__2021_11_23_10_53_20.pdf
DrIsikoIsaac
 
Chapter1.pdf
tharwatabdulhmed
 
Computer assignment for grade 9
nahomyitbarek
 
Introduction to programming language (basic)
nharsh2308
 
Lect-01.ppt
KamranAli649587
 
La 5 Pl Translator
Cma Mohd
 
Ad

Recently uploaded (20)

PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PPTX
Element 7. CHEMICAL AND BIOLOGICAL AGENT.pptx
merrandomohandas
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PPTX
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
PPTX
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PPTX
Hashing Introduction , hash functions and techniques
sailajam21
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PPTX
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Element 7. CHEMICAL AND BIOLOGICAL AGENT.pptx
merrandomohandas
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
Hashing Introduction , hash functions and techniques
sailajam21
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
Design Thinking basics for Engineers.pdf
CMR University
 
MobileComputingMANET2023 MobileComputingMANET2023.pptx
masterfake98765
 

Compiler vs Interpreter-Compiler design ppt.

  • 1. Welcome to our Presentation Topic : COMPILER vs INTERPRETER.
  • 2. Group Name: Gravity Group Member: Md. Alamgir Hossen Id:121-15-1761 Md. Abdus Sami Id:121-15-1712 Animesh Bhattacharjee Id:121-15-1680 Mushfiqur Rahman Id:121-16-1793
  • 3. What is Compiler? Compiler: A compiler is a piece of code that translates the high level language into machine language. When a user writes a code in a high level language such as Java and wants it to execute, a specific compiler which is designed for Java is used before it will be executed. The compiler scans the entire program first and then translates it into machine code which will be executed by the computer processor and the corresponding tasks will be performed. Shown in the figure is basic outline of the compilation process, here program written in higher level language is known as source program and the converted one is called object program.
  • 5. Compiler code  Here is a compiler code example that run “HELLO WORD”  If you create any error in code then out not found or get error message.
  • 6. What is interpreter? Interpreters: Interpreters are not much different than compilers. They also convert the 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 the machine code. Each part of the code is interpreted and then execute separately in a sequence and an error is found in a part of the code it will stop the interpretation of the code without translating the next set of the codes. Outlining the basic working of the interpreter the above figure shows that first a source code is converted to an intermediate form and then that is executed by the interpreter.
  • 9. COMPILER vs INTERPRETER A Compiler and Interpreter both carry out the same purpose – convert a high level language (like C, Java) instructions into the binary form which is understandable by computer hardware. They are the software used to execute the high level programs and codes to perform various tasks. Specific compilers/interpreters are designed for different high level languages. However both compiler and interpreter have the same objective but they differ in the way they accomplish their task i.e. convert high level language into machine language. Through this article we will talk about the basic working of both and distinguish the basic difference between compiler and interpreter. Before going through differences, keep in mind the following technical terms.
  • 10. COMPILER vs INTERPRETER Compile time: – The time taken to compile a program. Run time: – The time taken for executing a program. Source code: - The program in its user written form of the language. Source code is given as input to the compiler. Object code: - Is actually the machine code which is obtained by converting source code. The computer can read and execute machine code directly. An object code is also known as binary code / machine code.
  • 11. COMPILER vs INTERPRETER So the primary difference between a compiler and interpreter is in the way a program is executed. Any one serious about programming should understand the working of compilers, interpreters and the differences between them. So here trying to outline generic differences between compiling and interpreting (compilers vs interpreters).
  • 13. Advantages of using compiler  Since compiler converts the program to native code of the target machine (object code), faster performance can be expected.  There is a scope for code optimization.
  • 14. Advantages of using interpreter  Process of execution can be done in a single stage. There is no need of a 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.
  • 15. That’s all Any Question
  • 16. Thanks to All for staying with us.