Computer Science, asked by kapilkama, 9 months ago

Differentiate compiler & interpreter

Answers

Answered by abhijitgupta2
3

Explanation:

The main difference is that an interpreter directly executes the instructions in the source programming language while a compiler translates those instructions into efficient machine code. An interpreter will typically generate an efficient intermediate representation and immediately evaluate it.

hope it help you

BRAINLIST ANSWER

Answered by rani49035
2

Answer:

What is Compiler?

A compiler is a computer program that transforms code written in a high-level programming language into the machine code. It is a program which translates the human-readable code to a language a computer processor understands (binary 1 and 0 bits). The computer processes the machine code to perform the corresponding tasks.

A compiler should comply with the syntax rule of that programming language in which it is written. However, the compiler is only a program and cannot fix errors found in that program. So, if you make a mistake, you need to make changes in the syntax of your program. Otherwise, it will not compile.

What is Interpreter?

An interpreter is a computer program, which coverts each high-level program statement into the machine code. This includes source code, pre-compiled code, and scripts. Both compiler and interpreters do the same job which is converting higher level programming language to machine code. However, a compiler will convert the code into machine code (create an exe) before program run. Interpreters convert code into machine code when the program is run.

Similar questions