- A compiler converts the high level instruction into machine language while an interpreter converts the high level instruction into an intermediate form.
- Before execution, entire program is executed by the compiler whereas after translating the first line, an interpreter then executes it and so on.
- List of errors is created by the compiler after the compilation process while an interpreter stops translating after the first error.
- An independent executable file is created by the compiler whereas interpreter is required by an interpreted program each time.
- The compiler produce object code whereas interpreter does not produce object code.
- In the process of compilation the program is analyzed only once and then the code is generated whereas source program is interpreted every time it is to be executed and every time the source program is analyzed. hence interpreter is less efficient than compiler.
- Examples of interpreter: A UPS Debugger is basically a graphical source level debugger but it contains built in C interpreter which can handle multiple source files. example of compiler: Borland c compiler or Turbo C compiler compiles the programs written in C or C++.
Tuesday, June 19, 2012
Posted by Knowledegehub on 10:23 AM with 1 comment
Subscribe to:
Post Comments (Atom)
This is one of the best differences between compilers and interpreters. I also found another tutorial for difference between compiler and interpreter which I found quite long in explanation and more points in tabular format. I hope your readers find it useful.
ReplyDelete