SlideShare a Scribd company logo
Guided by:-
Mrs. Pragna Makwana
INFORMATION TECHNOLOGY
(5th SEMESTER)
SYSTEMPROGRAMMING
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
Ad

More Related Content

What's hot (20)

Types of Statements in Python Programming Language
Types of Statements in Python Programming LanguageTypes of Statements in Python Programming Language
Types of Statements in Python Programming Language
Explore Skilled
 
Translators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreterTranslators(Compiler, Assembler) and interpreter
Translators(Compiler, Assembler) and interpreter
baabtra.com - No. 1 supplier of quality freshers
 
Functions Of Operating System
Functions Of Operating SystemFunctions Of Operating System
Functions Of Operating System
Dr.Suresh Isave
 
Modules in Python Programming
Modules in Python ProgrammingModules in Python Programming
Modules in Python Programming
sambitmandal
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
Mukesh Chinta
 
Os ppt
Os pptOs ppt
Os ppt
Mitali Chugh
 
Datatypes in c
Datatypes in cDatatypes in c
Datatypes in c
CGC Technical campus,Mohali
 
MULTI THREADING IN JAVA
MULTI THREADING IN JAVAMULTI THREADING IN JAVA
MULTI THREADING IN JAVA
VINOTH R
 
C++ goto statement tutorialspoint
C++ goto statement   tutorialspointC++ goto statement   tutorialspoint
C++ goto statement tutorialspoint
NAMITHNAVAKRISHNAN
 
Basic concept of OOP's
Basic concept of OOP'sBasic concept of OOP's
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
Program & language generation
Program & language generationProgram & language generation
Program & language generation
Buxoo Abdullah
 
Array in c++
Array in c++Array in c++
Array in c++
Mahesha Mano
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
Iqra khalil
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
sanjay joshi
 
Interpreter
InterpreterInterpreter
Interpreter
IGZ Software house
 
Types of Computer Network
Types of Computer NetworkTypes of Computer Network
Types of Computer Network
Mohit Dasariya
 
Type conversion
Type conversionType conversion
Type conversion
Frijo Francis
 
Compilers
CompilersCompilers
Compilers
Bense Tony
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
adnan usmani
 
Types of Statements in Python Programming Language
Types of Statements in Python Programming LanguageTypes of Statements in Python Programming Language
Types of Statements in Python Programming Language
Explore Skilled
 
Functions Of Operating System
Functions Of Operating SystemFunctions Of Operating System
Functions Of Operating System
Dr.Suresh Isave
 
Modules in Python Programming
Modules in Python ProgrammingModules in Python Programming
Modules in Python Programming
sambitmandal
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
Mukesh Chinta
 
MULTI THREADING IN JAVA
MULTI THREADING IN JAVAMULTI THREADING IN JAVA
MULTI THREADING IN JAVA
VINOTH R
 
C++ goto statement tutorialspoint
C++ goto statement   tutorialspointC++ goto statement   tutorialspoint
C++ goto statement tutorialspoint
NAMITHNAVAKRISHNAN
 
Program & language generation
Program & language generationProgram & language generation
Program & language generation
Buxoo Abdullah
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
Iqra khalil
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
sanjay joshi
 
Types of Computer Network
Types of Computer NetworkTypes of Computer Network
Types of Computer Network
Mohit Dasariya
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
adnan usmani
 

Similar to Compiler vs interpreter (20)

compilervsinterpreter-161008074915.pdf
compilervsinterpreter-161008074915.pdfcompilervsinterpreter-161008074915.pdf
compilervsinterpreter-161008074915.pdf
HarshaVardhan196987
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdf
RakibRahman19
 
Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.
Md Hossen
 
Computer assignment for grade 9
Computer assignment for grade  9Computer assignment for grade  9
Computer assignment for grade 9
nahomyitbarek
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
sonalikharade3
 
La 5 Pl Translator
La 5   Pl TranslatorLa 5   Pl Translator
La 5 Pl Translator
Cma Mohd
 
Programming Languages
Programming LanguagesProgramming Languages
Programming Languages
Mohamed Omar
 
compiler vs interpreter
compiler vs interpretercompiler vs interpreter
compiler vs interpreter
Faculty of Science , portsaid Univeristy
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
nharsh2308
 
Assembler
AssemblerAssembler
Assembler
Suneel Dogra
 
COMPILER DESIGN.docx
COMPILER DESIGN.docxCOMPILER DESIGN.docx
COMPILER DESIGN.docx
Revathiparamanathan
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution ppt
Keerty Smile
 
Computer languages
Computer languagesComputer languages
Computer languages
Prince Arsal
 
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
Muhammad Hammad Waseem
 
Language translation system p
Language translation system pLanguage translation system p
Language translation system p
anassatti5
 
Computer language
Computer languageComputer language
Computer language
WASEEM ARSLAN
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
Mohit Saini
 
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide share
Sudhaa Ravi
 
Chapter 1.pptx compiler design lecture note
Chapter 1.pptx compiler design lecture noteChapter 1.pptx compiler design lecture note
Chapter 1.pptx compiler design lecture note
adugnanegero
 
Computer basics
Computer basicsComputer basics
Computer basics
sans87
 
compilervsinterpreter-161008074915.pdf
compilervsinterpreter-161008074915.pdfcompilervsinterpreter-161008074915.pdf
compilervsinterpreter-161008074915.pdf
HarshaVardhan196987
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdf
RakibRahman19
 
Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.Compiler vs Interpreter-Compiler design ppt.
Compiler vs Interpreter-Compiler design ppt.
Md Hossen
 
Computer assignment for grade 9
Computer assignment for grade  9Computer assignment for grade  9
Computer assignment for grade 9
nahomyitbarek
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
sonalikharade3
 
La 5 Pl Translator
La 5   Pl TranslatorLa 5   Pl Translator
La 5 Pl Translator
Cma Mohd
 
Programming Languages
Programming LanguagesProgramming Languages
Programming Languages
Mohamed Omar
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
nharsh2308
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution ppt
Keerty Smile
 
Computer languages
Computer languagesComputer languages
Computer languages
Prince Arsal
 
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
Muhammad Hammad Waseem
 
Language translation system p
Language translation system pLanguage translation system p
Language translation system p
anassatti5
 
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide share
Sudhaa Ravi
 
Chapter 1.pptx compiler design lecture note
Chapter 1.pptx compiler design lecture noteChapter 1.pptx compiler design lecture note
Chapter 1.pptx compiler design lecture note
adugnanegero
 
Computer basics
Computer basicsComputer basics
Computer basics
sans87
 
Ad

Recently uploaded (20)

Khloé Kardashian Biography The Celeb Post
Khloé Kardashian Biography The Celeb PostKhloé Kardashian Biography The Celeb Post
Khloé Kardashian Biography The Celeb Post
Lionapk
 
Talentsskskaskkakakakak Aquisition OEC108.pptx
Talentsskskaskkakakakak Aquisition OEC108.pptxTalentsskskaskkakakakak Aquisition OEC108.pptx
Talentsskskaskkakakakak Aquisition OEC108.pptx
sriyansh4443
 
A Boy is being left-out because he has no Girlfriends due to his low performa...
A Boy is being left-out because he has no Girlfriends due to his low performa...A Boy is being left-out because he has no Girlfriends due to his low performa...
A Boy is being left-out because he has no Girlfriends due to his low performa...
Laxu _00
 
Environmental_Footprint_LCA_Project_Creative.pptx
Environmental_Footprint_LCA_Project_Creative.pptxEnvironmental_Footprint_LCA_Project_Creative.pptx
Environmental_Footprint_LCA_Project_Creative.pptx
shahbaz78678678678
 
Who is Advoree Her Rise, Struggles .pdf
Who is Advoree Her Rise, Struggles       .pdfWho is Advoree Her Rise, Struggles       .pdf
Who is Advoree Her Rise, Struggles .pdf
Psshunt
 
mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...
Leonid Ledata
 
10 Best IPTV Free Trials in 2025 (Try Before You Buy).pdf
10 Best IPTV Free Trials in 2025 (Try Before You Buy).pdf10 Best IPTV Free Trials in 2025 (Try Before You Buy).pdf
10 Best IPTV Free Trials in 2025 (Try Before You Buy).pdf
BEST IPTV
 
Travis Kelce Life Biography The Celeb Post
Travis Kelce Life Biography The Celeb PostTravis Kelce Life Biography The Celeb Post
Travis Kelce Life Biography The Celeb Post
Lionapk
 
Stray Kids Powerpoint template guide to skz
Stray Kids Powerpoint template guide to skzStray Kids Powerpoint template guide to skz
Stray Kids Powerpoint template guide to skz
izabelucu
 
mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...
Leonid Ledata
 
BuzzerSaarang IITM Chennai Finals Quiz.pptx
BuzzerSaarang IITM Chennai Finals Quiz.pptxBuzzerSaarang IITM Chennai Finals Quiz.pptx
BuzzerSaarang IITM Chennai Finals Quiz.pptx
gabssienna0o
 
1883 Season 2_ What’s Really Going On With the Yellowstone Prequel.docx
1883 Season 2_ What’s Really Going On With the Yellowstone Prequel.docx1883 Season 2_ What’s Really Going On With the Yellowstone Prequel.docx
1883 Season 2_ What’s Really Going On With the Yellowstone Prequel.docx
voice ofarticle
 
Millie Bobby Brown Life Biography The Celeb Post
Millie Bobby Brown Life Biography The Celeb PostMillie Bobby Brown Life Biography The Celeb Post
Millie Bobby Brown Life Biography The Celeb Post
Lionapk
 
mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...
Leonid Ledata
 
Pension-Rules-1-2021040512 0919.ppt
Pension-Rules-1-2021040512      0919.pptPension-Rules-1-2021040512      0919.ppt
Pension-Rules-1-2021040512 0919.ppt
SwathyKrishna55
 
Movement intervention in sepecial population children .pptx
Movement intervention in sepecial population children .pptxMovement intervention in sepecial population children .pptx
Movement intervention in sepecial population children .pptx
nakisanianeani
 
LESSON 7_Basic metal fabrication techniques (Cutting, Shaping, Welding).pptx
LESSON 7_Basic metal fabrication techniques (Cutting, Shaping, Welding).pptxLESSON 7_Basic metal fabrication techniques (Cutting, Shaping, Welding).pptx
LESSON 7_Basic metal fabrication techniques (Cutting, Shaping, Welding).pptx
jojiesalgado
 
西班牙阿利坎特大学毕业证书留信网认证UA成绩单办本科学位证
西班牙阿利坎特大学毕业证书留信网认证UA成绩单办本科学位证西班牙阿利坎特大学毕业证书留信网认证UA成绩单办本科学位证
西班牙阿利坎特大学毕业证书留信网认证UA成绩单办本科学位证
taqyea
 
Adapting to Change_ How Los Angeles' TV Industry is Evolving by David Shane P...
Adapting to Change_ How Los Angeles' TV Industry is Evolving by David Shane P...Adapting to Change_ How Los Angeles' TV Industry is Evolving by David Shane P...
Adapting to Change_ How Los Angeles' TV Industry is Evolving by David Shane P...
David Shane PR
 
Understanding Rich Messaging Services Enhancing Communication in the Digital ...
Understanding Rich Messaging Services Enhancing Communication in the Digital ...Understanding Rich Messaging Services Enhancing Communication in the Digital ...
Understanding Rich Messaging Services Enhancing Communication in the Digital ...
Times Mobile
 
Khloé Kardashian Biography The Celeb Post
Khloé Kardashian Biography The Celeb PostKhloé Kardashian Biography The Celeb Post
Khloé Kardashian Biography The Celeb Post
Lionapk
 
Talentsskskaskkakakakak Aquisition OEC108.pptx
Talentsskskaskkakakakak Aquisition OEC108.pptxTalentsskskaskkakakakak Aquisition OEC108.pptx
Talentsskskaskkakakakak Aquisition OEC108.pptx
sriyansh4443
 
A Boy is being left-out because he has no Girlfriends due to his low performa...
A Boy is being left-out because he has no Girlfriends due to his low performa...A Boy is being left-out because he has no Girlfriends due to his low performa...
A Boy is being left-out because he has no Girlfriends due to his low performa...
Laxu _00
 
Environmental_Footprint_LCA_Project_Creative.pptx
Environmental_Footprint_LCA_Project_Creative.pptxEnvironmental_Footprint_LCA_Project_Creative.pptx
Environmental_Footprint_LCA_Project_Creative.pptx
shahbaz78678678678
 
Who is Advoree Her Rise, Struggles .pdf
Who is Advoree Her Rise, Struggles       .pdfWho is Advoree Her Rise, Struggles       .pdf
Who is Advoree Her Rise, Struggles .pdf
Psshunt
 
mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...
Leonid Ledata
 
10 Best IPTV Free Trials in 2025 (Try Before You Buy).pdf
10 Best IPTV Free Trials in 2025 (Try Before You Buy).pdf10 Best IPTV Free Trials in 2025 (Try Before You Buy).pdf
10 Best IPTV Free Trials in 2025 (Try Before You Buy).pdf
BEST IPTV
 
Travis Kelce Life Biography The Celeb Post
Travis Kelce Life Biography The Celeb PostTravis Kelce Life Biography The Celeb Post
Travis Kelce Life Biography The Celeb Post
Lionapk
 
Stray Kids Powerpoint template guide to skz
Stray Kids Powerpoint template guide to skzStray Kids Powerpoint template guide to skz
Stray Kids Powerpoint template guide to skz
izabelucu
 
mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...
Leonid Ledata
 
BuzzerSaarang IITM Chennai Finals Quiz.pptx
BuzzerSaarang IITM Chennai Finals Quiz.pptxBuzzerSaarang IITM Chennai Finals Quiz.pptx
BuzzerSaarang IITM Chennai Finals Quiz.pptx
gabssienna0o
 
1883 Season 2_ What’s Really Going On With the Yellowstone Prequel.docx
1883 Season 2_ What’s Really Going On With the Yellowstone Prequel.docx1883 Season 2_ What’s Really Going On With the Yellowstone Prequel.docx
1883 Season 2_ What’s Really Going On With the Yellowstone Prequel.docx
voice ofarticle
 
Millie Bobby Brown Life Biography The Celeb Post
Millie Bobby Brown Life Biography The Celeb PostMillie Bobby Brown Life Biography The Celeb Post
Millie Bobby Brown Life Biography The Celeb Post
Lionapk
 
mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...mr discrimination________________________________________________________1111...
mr discrimination________________________________________________________1111...
Leonid Ledata
 
Pension-Rules-1-2021040512 0919.ppt
Pension-Rules-1-2021040512      0919.pptPension-Rules-1-2021040512      0919.ppt
Pension-Rules-1-2021040512 0919.ppt
SwathyKrishna55
 
Movement intervention in sepecial population children .pptx
Movement intervention in sepecial population children .pptxMovement intervention in sepecial population children .pptx
Movement intervention in sepecial population children .pptx
nakisanianeani
 
LESSON 7_Basic metal fabrication techniques (Cutting, Shaping, Welding).pptx
LESSON 7_Basic metal fabrication techniques (Cutting, Shaping, Welding).pptxLESSON 7_Basic metal fabrication techniques (Cutting, Shaping, Welding).pptx
LESSON 7_Basic metal fabrication techniques (Cutting, Shaping, Welding).pptx
jojiesalgado
 
西班牙阿利坎特大学毕业证书留信网认证UA成绩单办本科学位证
西班牙阿利坎特大学毕业证书留信网认证UA成绩单办本科学位证西班牙阿利坎特大学毕业证书留信网认证UA成绩单办本科学位证
西班牙阿利坎特大学毕业证书留信网认证UA成绩单办本科学位证
taqyea
 
Adapting to Change_ How Los Angeles' TV Industry is Evolving by David Shane P...
Adapting to Change_ How Los Angeles' TV Industry is Evolving by David Shane P...Adapting to Change_ How Los Angeles' TV Industry is Evolving by David Shane P...
Adapting to Change_ How Los Angeles' TV Industry is Evolving by David Shane P...
David Shane PR
 
Understanding Rich Messaging Services Enhancing Communication in the Digital ...
Understanding Rich Messaging Services Enhancing Communication in the Digital ...Understanding Rich Messaging Services Enhancing Communication in the Digital ...
Understanding Rich Messaging Services Enhancing Communication in the Digital ...
Times Mobile
 
Ad

Compiler vs interpreter

  • 1. Guided by:- Mrs. Pragna Makwana INFORMATION TECHNOLOGY (5th SEMESTER) SYSTEMPROGRAMMING 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.