Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exact difference between Compiler and Interpreter? [duplicate]

Possible Duplicate:
How does an interpreter/compiler work

Hi what is the exact difference between the Compiler and interpreter ?

like image 886
Vinoth K Avatar asked Feb 03 '23 02:02

Vinoth K


1 Answers

From Wikipedia:

  • Compiler: A compiler is a computer program (or set of programs) that transforms source code written in a programming language (the source language) into another computer language (the target language, often having a binary form known as object code).
  • Interpreter: An interpreted language is a programming language in which programs are 'indirectly' executed ("interpreted") by an interpreter program. This can be contrasted with a compiled language which is converted into machine code and then 'directly' executed by the host CPU.
like image 98
Noel M Avatar answered Feb 05 '23 20:02

Noel M