Computer Science, asked by itsgungunsharma, 11 months ago

difference between an interpreter and compiler

Answers

Answered by Anonymous
18

Hi,

Interpreter An interpreter takes each line of source code of a programming language, and executes it there and then. It goes on to do the same for the next line afterwards. An interpreter runs source code line-by-line. It looks at each line and evaluates them as it runs them.

For Example:- Google Chrome's V8 engine is an interpreter for JavaScript.

Compiler A compiler is a program which coverts the source code of a programming language (mostly written in high level lanugage) into executable machine code (0's and 1's) for a CPU. A compiler is something that translates one language into another. Think about it like what Google Translator is for natural languages.

For Example:- C++ compiler which takes *.cpp files and compiles them into machine code.


itsgungunsharma: thanks yar
Similar questions