what is the difference between compiler and interpreter
Answers
Answered by
56
we generally write a computer program using a high level language has a compiler and interpreter is a program that converts program written in high level language into machine code understood by the computer .
Anonymous:
ri8
Answered by
127
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
Economy,
7 months ago
CBSE BOARD XII,
7 months ago
Geography,
7 months ago
Math,
1 year ago
Math,
1 year ago