Monday, October 7, 2013

Difference between Interpreter and compiler


SN
Difference between Interpreter and compiler:
We write program normally in high level languages like BASIC, COBOL
Fortran etc. In these high level languages programs are written in English language but we know computer can understand only machine language (binary code). Therefore we require some software which can convert
High level language program into machine language program and these software are known as complier and Interpreter.

Interpreter
Compiler
1
Interpreter convert the high level
Language program in machine language statement by statement.
Compiler convert full program into machine language at once.

2
Interpreter execute the converted
Program statement by statement.
Compiler executes the converted programs at once.
3
Interpreters are inefficient in comparison to compiler for program execution.
Compilers are very efficient and most of the languages are compiler based languages.
4
Interpreter languages are easy to learn because of better error messaging system
Compiler languages are difficult to learn.
5
Interpreter require less memory space and is normally inexpensive then compiler.
Compilers require more memory space and are expensive then interpreter.

No comments:

Post a Comment