SlideShare a Scribd company logo
2
Most read
10
Most read
11
Most read
INFORMATION TECHNOLOGY
(5th SEMESTER)
SYSTEMPROGRAMMING
Guided by:-
Mrs. Pragna Makwana
Prepared by:-
Patel Paras (140500116024)
Patel Pranay (140500116026)
Shah Vidhi (140500116036)
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 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 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
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.
No. COMPILER INTERPRETER
1. Based on language translation
linking-loading model.
Based on Interpretation Method.
2. Generate a target output program
as an output which can be run
independently from the source
program.
Do not generate any output program ,
they evaluate the source program at
each time for execution.
3. Program execution is separate from
compilation and performed only
after the entire output program is
produced.
Program Execution is a part of
Interpretation and is performed on a
statement-by-statement basis.
4. Target program execute
independently and does not need
the presence of compiler in the
memory.
The interpreter exist in the memory
during interpretation.
N
o.
COMPILER INTERPRETER
5. Do not generate output program , If
any is occurred.
It can evaluate & execute program
statement until an error is found.
6. Need recompilation for generating
output program in target language
after each modification in the source
program.
Interpreter is independent of program
modification issues as it processes the
source program each time during
execution.
7. Suitable for Production Environment. Suitable for program development
environment.
8. Bounded to specific target machine
and cannot be ported.
Can be made portable by carefully
coding them in a higher level language.
9. C and C++ are example of
programming language that use
compilation model.
Visual Basic , LISP and MATLAB use
Interpreter.
Compiler vs interpreter

More Related Content

What's hot (20)

PPT
Variables in C Programming
programming9
 
PPTX
Function in C program
Nurul Zakiah Zamri Tan
 
PPTX
Control statements in c
Sathish Narayanan
 
PPT
How to execute a C program
Leela Koneru
 
PDF
OS - Process Concepts
Mukesh Chinta
 
PPTX
Operators in java
Then Murugeshwari
 
PPTX
Steps for c program execution
Rumman Ansari
 
PPTX
Introduction TO Finite Automata
Ratnakar Mikkili
 
PPT
Structure of a C program
David Livingston J
 
PPTX
System Programming- Unit I
Saranya1702
 
DOCX
Features of c language 1
srmohan06
 
PDF
Object oriented programming c++
Ankur Pandey
 
PPT
C by balaguruswami - e.balagurusamy
Srichandan Sobhanayak
 
PPTX
Direct linking loaders
Satyamevjayte Haxor
 
PPTX
C-Programming C LIBRARIES AND USER DEFINED LIBRARIES.pptx
SKUP1
 
PPT
Introduction to Compiler Construction
Sarmad Ali
 
PPTX
Types of Programming Errors
Neha Sharma
 
PPTX
Process state in OS
Khushboo Jain
 
PPTX
DIGITAL COMPUTERS
devasishreddy22
 
PPTX
Programming in C Presentation upto FILE
Dipta Saha
 
Variables in C Programming
programming9
 
Function in C program
Nurul Zakiah Zamri Tan
 
Control statements in c
Sathish Narayanan
 
How to execute a C program
Leela Koneru
 
OS - Process Concepts
Mukesh Chinta
 
Operators in java
Then Murugeshwari
 
Steps for c program execution
Rumman Ansari
 
Introduction TO Finite Automata
Ratnakar Mikkili
 
Structure of a C program
David Livingston J
 
System Programming- Unit I
Saranya1702
 
Features of c language 1
srmohan06
 
Object oriented programming c++
Ankur Pandey
 
C by balaguruswami - e.balagurusamy
Srichandan Sobhanayak
 
Direct linking loaders
Satyamevjayte Haxor
 
C-Programming C LIBRARIES AND USER DEFINED LIBRARIES.pptx
SKUP1
 
Introduction to Compiler Construction
Sarmad Ali
 
Types of Programming Errors
Neha Sharma
 
Process state in OS
Khushboo Jain
 
DIGITAL COMPUTERS
devasishreddy22
 
Programming in C Presentation upto FILE
Dipta Saha
 

Viewers also liked (20)

DOC
compiler vs interpreter
Faculty of Science , portsaid Univeristy
 
PPTX
Compiler vs interpreter
Kamal Tamang
 
PPTX
Interpreter
IGZ Software house
 
PPTX
Phases of Compiler
Tanzeela_Hussain
 
PPT
Compilers and interpreters
RAJU KATHI
 
PDF
Different phases of a compiler
Sumit Sinha
 
PPTX
Chapter 2.3
sotlsoc
 
DOCX
Makalah Algoritma
fantasticfour84
 
PDF
Climbing the Abstract Syntax Tree (Bulgaria PHP 2016)
James Titcumb
 
PPTX
Transpilers(Source-to-Source Compilers)
Shivang Bajaniya
 
ODP
Hugging Abstract Syntax Trees: A Pythonic Love Story (OSDC 2010)
Tom Lee
 
PDF
Compilation v. interpretation
Alexander Bollbach
 
PPT
4 various operating systems
myrajendra
 
PPTX
Interpreted and compiled language
baabtra.com - No. 1 supplier of quality freshers
 
PDF
Computer programming all chapters
Ibrahim Elewah
 
PDF
Input and output devices
University of Rizal System-Morong
 
PPTX
Phases of a Compiler
University of Saskatchewan
 
PPTX
Parallel language & compilers
dikshagupta111
 
PPTX
Algoritma pemrogmraman
noval riansyah
 
Compiler vs interpreter
Kamal Tamang
 
Interpreter
IGZ Software house
 
Phases of Compiler
Tanzeela_Hussain
 
Compilers and interpreters
RAJU KATHI
 
Different phases of a compiler
Sumit Sinha
 
Chapter 2.3
sotlsoc
 
Makalah Algoritma
fantasticfour84
 
Climbing the Abstract Syntax Tree (Bulgaria PHP 2016)
James Titcumb
 
Transpilers(Source-to-Source Compilers)
Shivang Bajaniya
 
Hugging Abstract Syntax Trees: A Pythonic Love Story (OSDC 2010)
Tom Lee
 
Compilation v. interpretation
Alexander Bollbach
 
4 various operating systems
myrajendra
 
Interpreted and compiled language
baabtra.com - No. 1 supplier of quality freshers
 
Computer programming all chapters
Ibrahim Elewah
 
Input and output devices
University of Rizal System-Morong
 
Phases of a Compiler
University of Saskatchewan
 
Parallel language & compilers
dikshagupta111
 
Algoritma pemrogmraman
noval riansyah
 
Ad

Similar to Compiler vs interpreter (20)

PPTX
Compiler vs interpreter
HarshaVardhan196987
 
PPTX
COMPUTER ORGANIZATION.pptxbkobuujghuujjj
AnujyotiDe
 
PPTX
COMPILER DESIGN OPTIONS
sonalikharade3
 
PDF
Language processing system.pdf
RakibRahman19
 
DOCX
COMPILER DESIGN.docx
Revathiparamanathan
 
PDF
Compilerandinterpreterghhhjjjjjjjjnnn.pdf
mksolanki527
 
PPTX
Chapter 2 Program language translation.pptx
dawod yimer
 
PDF
Chapter1.pdf
tharwatabdulhmed
 
DOCX
Compliers and interpreters
shivasdhtsvmic
 
PPTX
Presentation
Zarqa Khalid
 
PPTX
Computer Language Translator
Ranjeet Kumar
 
PPTX
Language processor
Muhammad Mudarrak
 
PPTX
Chapter 1 Introduction.pptxhjgjghjghjhjhjhgjmjkhgk
Shemse Shukre
 
DOCX
Computer assignment for grade 9
nahomyitbarek
 
PPTX
Compiler design slide share
Sudhaa Ravi
 
PPT
basics of compiler design
Preeti Katiyar
 
PPT
Introduction to compiler design and phases of compiler
Ranjeet Reddy
 
PPTX
Unit2_CD.pptx more about compilation of the day
k12196987
 
PPTX
Pros and cons of c as a compiler language
Ashok Raj
 
PPTX
Language Translator ( Compiler)
Nazmul Hyder
 
Compiler vs interpreter
HarshaVardhan196987
 
COMPUTER ORGANIZATION.pptxbkobuujghuujjj
AnujyotiDe
 
COMPILER DESIGN OPTIONS
sonalikharade3
 
Language processing system.pdf
RakibRahman19
 
COMPILER DESIGN.docx
Revathiparamanathan
 
Compilerandinterpreterghhhjjjjjjjjnnn.pdf
mksolanki527
 
Chapter 2 Program language translation.pptx
dawod yimer
 
Chapter1.pdf
tharwatabdulhmed
 
Compliers and interpreters
shivasdhtsvmic
 
Presentation
Zarqa Khalid
 
Computer Language Translator
Ranjeet Kumar
 
Language processor
Muhammad Mudarrak
 
Chapter 1 Introduction.pptxhjgjghjghjhjhjhgjmjkhgk
Shemse Shukre
 
Computer assignment for grade 9
nahomyitbarek
 
Compiler design slide share
Sudhaa Ravi
 
basics of compiler design
Preeti Katiyar
 
Introduction to compiler design and phases of compiler
Ranjeet Reddy
 
Unit2_CD.pptx more about compilation of the day
k12196987
 
Pros and cons of c as a compiler language
Ashok Raj
 
Language Translator ( Compiler)
Nazmul Hyder
 
Ad

Recently uploaded (20)

PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
PPTX
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PDF
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PDF
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
PDF
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
PDF
6th International Conference on Machine Learning Techniques and Data Science ...
ijistjournal
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
PPTX
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
PPTX
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PDF
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PPTX
Introduction to Design of Machine Elements
PradeepKumarS27
 
Thermal runway and thermal stability.pptx
godow93766
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
6th International Conference on Machine Learning Techniques and Data Science ...
ijistjournal
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
MRRS Strength and Durability of Concrete
CivilMythili
 
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
Introduction to Design of Machine Elements
PradeepKumarS27
 

Compiler vs interpreter

  • 1. INFORMATION TECHNOLOGY (5th SEMESTER) SYSTEMPROGRAMMING Guided by:- Mrs. Pragna Makwana Prepared by:- Patel Paras (140500116024) Patel Pranay (140500116026) Shah Vidhi (140500116036)
  • 2. 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 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.
  • 3.  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 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.
  • 7.  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.
  • 10. No. COMPILER INTERPRETER 1. Based on language translation linking-loading model. Based on Interpretation Method. 2. Generate a target output program as an output which can be run independently from the source program. Do not generate any output program , they evaluate the source program at each time for execution. 3. Program execution is separate from compilation and performed only after the entire output program is produced. Program Execution is a part of Interpretation and is performed on a statement-by-statement basis. 4. Target program execute independently and does not need the presence of compiler in the memory. The interpreter exist in the memory during interpretation.
  • 11. N o. COMPILER INTERPRETER 5. Do not generate output program , If any is occurred. It can evaluate & execute program statement until an error is found. 6. Need recompilation for generating output program in target language after each modification in the source program. Interpreter is independent of program modification issues as it processes the source program each time during execution. 7. Suitable for Production Environment. Suitable for program development environment. 8. Bounded to specific target machine and cannot be ported. Can be made portable by carefully coding them in a higher level language. 9. C and C++ are example of programming language that use compilation model. Visual Basic , LISP and MATLAB use Interpreter.