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

UPES Dehradun BCA Admissions ...
Apply
Ranked #45 Among Universities in India by NIRF | 1950+ Students Placed, 91% Placement, 800+ Recruiters
MAHE Online MBA
Apply
Apply for Online MBA from Manipal Academy of Higher Education (MAHE)
Graphic Era (Deemed to be Uni...
Apply
NAAC A+ Grade | Among top 100 universities of India (NIRF 2024) | 40 crore+ scholarships distributed
JSS University Noida MCA 2025
Apply
170+ Recruiters Including Samsung, Zomato, LG, Adobe and many more | Highest CTC 47 LPA
NIELIT University(Govt. of In...
Apply
Campuses in Ropar, Agartala, Aizawl, Ajmer, Aurangabad, Calicut, Imphal, Itanagar, Kohima, Gorakhpur, Patna & Srinagar
Silver Oak University BCA Adm...
Apply
Management Conclaves | Industrial visits to eminent companies | Celebrated guest speakers
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