No products in the cart.

Difference between compiler and interpretor

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Difference between compiler and interpretor
  • 1 answers

Yogita Ingle 4 years, 11 months ago

<th>Basis for comparison</th> <th>Compiler</th> <th>Interpreter</th>
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.
http://mycbseguide.com/examin8/

Related Questions

Founder of python
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App