SlideShare a Scribd company logo
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.
compilervsinterpreter-161008074915.pdf

More Related Content

Similar to compilervsinterpreter-161008074915.pdf

Programming Languages
Programming LanguagesProgramming Languages
Programming LanguagesMohamed Omar
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution pptKeerty Smile
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)nharsh2308
 
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide shareSudhaa Ravi
 
Computer basics
Computer basicsComputer basics
Computer basicssans87
 
Compliers and interpreters
Compliers and interpretersCompliers and interpreters
Compliers and interpretersshivasdhtsvmic
 
[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 LanguagesMuhammad Hammad Waseem
 
Computer languages
Computer languagesComputer languages
Computer languagesPrince Arsal
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and developmentAli Raza
 
COMPUTER ORGANIZATION.pptxbkobuujghuujjj
COMPUTER ORGANIZATION.pptxbkobuujghuujjjCOMPUTER ORGANIZATION.pptxbkobuujghuujjj
COMPUTER ORGANIZATION.pptxbkobuujghuujjjAnujyotiDe
 
Compiler Construction Course - Introduction
Compiler Construction Course - IntroductionCompiler Construction Course - Introduction
Compiler Construction Course - IntroductionMuhammad Sanaullah
 
Language translation system p
Language translation system pLanguage translation system p
Language translation system panassatti5
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programmingMukesh Tekwani
 
lce1 مترجمات.pptx
lce1 مترجمات.pptxlce1 مترجمات.pptx
lce1 مترجمات.pptxSamiAAli44
 
Introduction to compiler
Introduction to compilerIntroduction to compiler
Introduction to compilerA. S. M. Shafi
 

Similar to compilervsinterpreter-161008074915.pdf (20)

COMPILER DESIGN.docx
COMPILER DESIGN.docxCOMPILER DESIGN.docx
COMPILER DESIGN.docx
 
Programming Languages
Programming LanguagesProgramming Languages
Programming Languages
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution ppt
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
 
Compiler design slide share
Compiler design slide shareCompiler design slide share
Compiler design slide share
 
Computer basics
Computer basicsComputer basics
Computer basics
 
compiler vs interpreter
compiler vs interpretercompiler vs interpreter
compiler vs interpreter
 
Compliers and interpreters
Compliers and interpretersCompliers and interpreters
Compliers and interpreters
 
Presentation
PresentationPresentation
Presentation
 
[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
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Software programming and development
Software programming and developmentSoftware programming and development
Software programming and development
 
COMPUTER ORGANIZATION.pptxbkobuujghuujjj
COMPUTER ORGANIZATION.pptxbkobuujghuujjjCOMPUTER ORGANIZATION.pptxbkobuujghuujjj
COMPUTER ORGANIZATION.pptxbkobuujghuujjj
 
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
 
Language translation system p
Language translation system pLanguage translation system p
Language translation system p
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
 
Introduction to systems programming
Introduction to systems programmingIntroduction to systems programming
Introduction to systems programming
 
lce1 مترجمات.pptx
lce1 مترجمات.pptxlce1 مترجمات.pptx
lce1 مترجمات.pptx
 
Introduction to compiler
Introduction to compilerIntroduction to compiler
Introduction to compiler
 

Recently uploaded

INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfjoachimlavalley1
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticspragatimahajan3
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxakshayaramakrishnan21
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryEugene Lysak
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online PresentationGDSCYCCE
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxCapitolTechU
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resourcesaileywriter
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...Denish Jangid
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...Sayali Powar
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17Celine George
 

Recently uploaded (20)

INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 

compilervsinterpreter-161008074915.pdf

  • 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.