Computer Science, asked by srijana67, 1 year ago

Give difference between compiler and interpreter.

Answers

Answered by amii12
2
A compiler is a translator which transforms source language (high-level language) into object language (machine language). ... Another difference between Compiler and interpreter is that Compiler converts the whole program in one go on the other hand Interpreter converts the program by taking a single line at a time.

srijana67: Thanks
Answered by siddhartharao77
4
Short note on compiler vs interpreter:

Compiler:

(i) It generates Intermediate object code. 

(ii) It reads entire program for compilation.

(iii) Memory management is high.

(iv) Execution time is less.

(v) Examples : C, C++.


Interpreter:

(i) It won't generate intermediate code.

(ii) It reads the single instruction as input.

(iii) Memory management is less.

(iv) Execution time is fast.

(v) Python, Ruby.




Hope this helps!

siddhartharao77: :-)
Similar questions