Give difference between compiler and interpreter.
Answers
Answered by
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
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!
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!
Similar questions
Computer Science,
8 months ago
Social Sciences,
8 months ago
Hindi,
8 months ago
Math,
1 year ago
Math,
1 year ago
Math,
1 year ago