444 Views

differentiate between interpreter and compiler


KON TONYOT 19th Dec, 2019
Answer (1)
Pachigolla Hemanth 19th Dec, 2019

Hello kon Tonyot,

The differentiate between interpreter and compiler ,can been seen in the below table

BASIS FOR COMPARISON COMPILER INTERPRETER
Input It takes an entire program at a time.
It takes a single line of code or instruction at a time.
Output It generates intermediate object code. It does not produce any intermediate object code.
Working mechanism
The compilation is done before execution. Compilation and execution take place simultaneously.
Speed

Comparatively faster Slower
Memory

Memory requirement is more due to the creation of object code. It requires less memory as it does not create intermediate object code.
Errors
Display all errors after compilation, all at the same time. Displays error of each line one by one.
Error detection Difficult Easier comparatively
Pertaining Programming languages
C, C++, C#, Scala, typescript uses compiler. PHP, Perl, Python, Ruby uses an interpreter.

Hope this helps you..

Related Questions

Amity University-Noida BCA Ad...
Apply
Among top 100 Universities Globally in the Times Higher Education (THE) Interdisciplinary Science Rankings 2026
Victoria University, Delhi NCR
Apply
Apply for UG & PG programs from Victoria University, Delhi NCR Campus
RV University, Bangalore | BC...
Apply
Comprehensive education for the tech-driven era. Cutting-edge labs and facilities. Merit-based scholarships available
Amity University-Noida MCA Ad...
Apply
Among top 100 Universities Globally in the Times Higher Education (THE) Interdisciplinary Science Rankings 2026
Jaypee University MCA Admissi...
Apply
Highest CTC 94.25 LPA | Average CTC 13,24 LPA Approved by UGC & AICTC | Accredited by NBA & NAAC A Grade | 98% Students Placed | 260+ Recruiters
SRM University, Chennai Scien...
Apply
NAAC A++ Accredited | Ranked #11 by NIRF
View All Application Forms

Download the Careers360 App on your Android phone

Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile

150M+ Students
30,000+ Colleges
500+ Exams
1500+ E-books