Write the definitions of Interpreter and Compiler , and advantages and disadvantages of it.
Answers
Answered by
17
Interpreter:
An interpreter is a program that directly executes the instructions in a high-level language, without converting it into machine cøde.
Advantages:
- Executes line by line. Hence, debugging is easy.
- No intermediate cøde hence uses thememory efficiently.
Disadvantage:
- Execution time is more.
Compiler:
A compiler is a computer program which helps you transform source cøde written in a high-level language into low-level machine language.
Advantages:
- Self-Contained and Efficient.
- Hardware Optimization.
Disadvantages:
- Hardware Specific.
- Compile Times.
Similar questions