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

More Related Content

Similar to Compiler vs interpreter

Programming Languages
Programming LanguagesProgramming Languages
Programming LanguagesMohamed Omar
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
nharsh2308
 
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
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide share
Sudhaa Ravi
 
Computer basics
Computer basicsComputer basics
Computer basics
sans87
 
Presentation
PresentationPresentation
Presentation
Zarqa Khalid
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programming
Mukesh Tekwani
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
Ali Raza
 
Program, Programming and Programming Language.pptx
Program, Programming and Programming Language.pptxProgram, Programming and Programming Language.pptx
Program, Programming and Programming Language.pptx
HariharPaudel1
 
Compliers and interpreters
Compliers and interpretersCompliers and interpreters
Compliers and interpreters
shivasdhtsvmic
 
Lect-01.ppt
Lect-01.pptLect-01.ppt
Lect-01.ppt
KamranAli649587
 
Compiler Construction Course - Introduction
Compiler Construction Course - IntroductionCompiler Construction Course - Introduction
Compiler Construction Course - Introduction
Muhammad Sanaullah
 

Similar to Compiler vs interpreter (20)

Programming Languages
Programming LanguagesProgramming Languages
Programming Languages
 
compiler vs interpreter
compiler vs interpretercompiler vs interpreter
compiler vs interpreter
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
 
Assembler
AssemblerAssembler
Assembler
 
COMPILER DESIGN.docx
COMPILER DESIGN.docxCOMPILER DESIGN.docx
COMPILER DESIGN.docx
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution ppt
 
Computer languages
Computer languagesComputer languages
Computer 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
[ITP - Lecture 01] Introduction to Programming & Different Programming Languages
 
Language translation system p
Language translation system pLanguage translation system p
Language translation system p
 
Computer language
Computer languageComputer language
Computer language
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
 
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide share
 
Computer basics
Computer basicsComputer basics
Computer basics
 
Presentation
PresentationPresentation
Presentation
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programming
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
Program, Programming and Programming Language.pptx
Program, Programming and Programming Language.pptxProgram, Programming and Programming Language.pptx
Program, Programming and Programming Language.pptx
 
Compliers and interpreters
Compliers and interpretersCompliers and interpreters
Compliers and interpreters
 
Lect-01.ppt
Lect-01.pptLect-01.ppt
Lect-01.ppt
 
Compiler Construction Course - Introduction
Compiler Construction Course - IntroductionCompiler Construction Course - Introduction
Compiler Construction Course - Introduction
 

Recently uploaded

Skeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on ForumSkeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on Forum
Isaac More
 
A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024
Indira Srivatsa
 
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdfCreate a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
Genny Knight
 
Tom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive AnalysisTom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive Analysis
greendigital
 
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
Rodney Thomas Jr
 
Hollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest galleryHollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest gallery
Zsolt Nemeth
 
Meet Dinah Mattingly – Larry Bird’s Partner in Life and Love
Meet Dinah Mattingly – Larry Bird’s Partner in Life and LoveMeet Dinah Mattingly – Larry Bird’s Partner in Life and Love
Meet Dinah Mattingly – Larry Bird’s Partner in Life and Love
get joys
 
240529_Teleprotection Global Market Report 2024.pdf
240529_Teleprotection Global Market Report 2024.pdf240529_Teleprotection Global Market Report 2024.pdf
240529_Teleprotection Global Market Report 2024.pdf
Madhura TBRC
 
Treasure Hunt Puzzles, Treasure Hunt Puzzles online
Treasure Hunt Puzzles, Treasure Hunt Puzzles onlineTreasure Hunt Puzzles, Treasure Hunt Puzzles online
Treasure Hunt Puzzles, Treasure Hunt Puzzles online
Hidden Treasure Hunts
 
The Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy DirectorThe Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy Director
Mark Murphy Director
 
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdfMaximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Xtreame HDTV
 
Young Tom Selleck: A Journey Through His Early Years and Rise to Stardom
Young Tom Selleck: A Journey Through His Early Years and Rise to StardomYoung Tom Selleck: A Journey Through His Early Years and Rise to Stardom
Young Tom Selleck: A Journey Through His Early Years and Rise to Stardom
greendigital
 
I Know Dino Trivia: Part 3. Test your dino knowledge
I Know Dino Trivia: Part 3. Test your dino knowledgeI Know Dino Trivia: Part 3. Test your dino knowledge
I Know Dino Trivia: Part 3. Test your dino knowledge
Sabrina Ricci
 
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog EternalMeet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
Blog Eternal
 
Panchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdfPanchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdf
Suleman Rana
 
Reimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a SuccessReimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a Success
Mark Murphy Director
 
Christina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptxChristina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptx
madeline604788
 
This Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I MadeThis Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I Made
Aarush Ghate
 
Scandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.zaScandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.za
Isaac More
 

Recently uploaded (19)

Skeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on ForumSkeem Saam in June 2024 available on Forum
Skeem Saam in June 2024 available on Forum
 
A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024A TO Z INDIA Monthly Magazine - JUNE 2024
A TO Z INDIA Monthly Magazine - JUNE 2024
 
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdfCreate a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
Create a Seamless Viewing Experience with Your Own Custom OTT Player.pdf
 
Tom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive AnalysisTom Selleck Net Worth: A Comprehensive Analysis
Tom Selleck Net Worth: A Comprehensive Analysis
 
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
From Slave to Scourge: The Existential Choice of Django Unchained. The Philos...
 
Hollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest galleryHollywood Actress - The 250 hottest gallery
Hollywood Actress - The 250 hottest gallery
 
Meet Dinah Mattingly – Larry Bird’s Partner in Life and Love
Meet Dinah Mattingly – Larry Bird’s Partner in Life and LoveMeet Dinah Mattingly – Larry Bird’s Partner in Life and Love
Meet Dinah Mattingly – Larry Bird’s Partner in Life and Love
 
240529_Teleprotection Global Market Report 2024.pdf
240529_Teleprotection Global Market Report 2024.pdf240529_Teleprotection Global Market Report 2024.pdf
240529_Teleprotection Global Market Report 2024.pdf
 
Treasure Hunt Puzzles, Treasure Hunt Puzzles online
Treasure Hunt Puzzles, Treasure Hunt Puzzles onlineTreasure Hunt Puzzles, Treasure Hunt Puzzles online
Treasure Hunt Puzzles, Treasure Hunt Puzzles online
 
The Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy DirectorThe Evolution of Animation in Film - Mark Murphy Director
The Evolution of Animation in Film - Mark Murphy Director
 
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdfMaximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
Maximizing Your Streaming Experience with XCIPTV- Tips for 2024.pdf
 
Young Tom Selleck: A Journey Through His Early Years and Rise to Stardom
Young Tom Selleck: A Journey Through His Early Years and Rise to StardomYoung Tom Selleck: A Journey Through His Early Years and Rise to Stardom
Young Tom Selleck: A Journey Through His Early Years and Rise to Stardom
 
I Know Dino Trivia: Part 3. Test your dino knowledge
I Know Dino Trivia: Part 3. Test your dino knowledgeI Know Dino Trivia: Part 3. Test your dino knowledge
I Know Dino Trivia: Part 3. Test your dino knowledge
 
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog EternalMeet Crazyjamjam - A TikTok Sensation | Blog Eternal
Meet Crazyjamjam - A TikTok Sensation | Blog Eternal
 
Panchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdfPanchayat Season 3 - Official Trailer.pdf
Panchayat Season 3 - Official Trailer.pdf
 
Reimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a SuccessReimagining Classics - What Makes a Remake a Success
Reimagining Classics - What Makes a Remake a Success
 
Christina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptxChristina's Baby Shower Game June 2024.pptx
Christina's Baby Shower Game June 2024.pptx
 
This Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I MadeThis Is The First All Category Quiz That I Made
This Is The First All Category Quiz That I Made
 
Scandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.zaScandal! Teasers June 2024 on etv Forum.co.za
Scandal! Teasers June 2024 on etv Forum.co.za
 

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.