Wednesday, 25 February 2015

Difference between Compiler and Interpreter


Compiler

  • It execute entire program as input.
  • It genrate intermediate object code.
  • It take less time to execute condition statement. (Faster)
  • More memory require.
  • Error shown when entire code checked.
  • Program not need to compile every time to run program. It one time .obj file creator.
  • Example:- c, c++, java


Interpreter

  • It execute line by line as input.
  • It does't intermediate object code.
  • It take more time to execute condition statement. (Slower)
  • Less memory required.
  • It terminate as soon as error accrued in line of program.
  • Program every time interpret whenever we have to run it.
  • Example:- Basic, Machine language, assembly language.
Next

1 comment: