Computer Science, asked by opgupta3844, 1 month ago

Write the definitions of Interpreter and Compiler , and advantages and disadvantages of it.​

Answers

Answered by vikaslovely00
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:

  1. Executes line by line. Hence, debugging is easy.
  2. No intermediate cøde hence uses thememory efficiently.

Disadvantage:

  1. 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:

  1. Self-Contained and Efficient.
  2. Hardware Optimization.

Disadvantages:

  1. Hardware Specific.
  2. Compile Times.
Similar questions