An interpreter is a program that translates and executes each source code (program written in any one of the programming languages) statement before translating and executing the next statement.it is easy to use.when the program is being executed, both the interpreter and the source code must reside in the memory;therefore large programs cannot be executed.the program runs slowly as the interpreter translates and executes the program statement by statement.
A compiler is a program that translates all the source code statements before executing the program. it is difficult to use. When the program is being executed,the compiler doesn't reside in the memory;hence,large programs can be executed. The program runs more quickly as no translation is done during execution.
Got an idea?!! ;-)
2006-08-28 02:54:25
·
answer #1
·
answered by zed 2
·
0⤊
0⤋
A compiler translates each line in a program just once whereas an interpreter may translate a line several times if the line is involved in a loop. Compilers come in various sub types but one major split is between the traditional compiler which translates the whole program for execution later, and the JIT (Just In Time) compiler which translates the program line by line (or module by module) just before each line is executed. This is similar to an interpreter except that the JIT compiler keeps the translated code for later in case the line is executed again, whereas the interpreter translates the line again the next time it has to execute it.
2006-08-28 09:51:08
·
answer #2
·
answered by dewman_byju 4
·
0⤊
0⤋
Interpreter normally works for scripting language, like JavaScript, VbScript, where the engine interprete the coding, run-time and execute it.
However, compiler is compile the coding into binary file, and the binary file is then executed or used by other applications.
Another difference is, when you need to execute the program, for Interpreter type, you need the interpreter at the computer; As for compiled type application, it can just executed, without the need of the compiler.
Hope this clears.
2006-08-28 09:49:39
·
answer #3
·
answered by shin 3
·
0⤊
0⤋
An interpreter, just read the instructions and execute the program, but when you exit from it, you just have the program code, and a compiler, creates a new executable file.... So, I mean, with an interpreter, you just run the program in memory, and with a compiler you create the executable program, so you will have it if you exit the compiler...
2006-08-28 09:51:13
·
answer #4
·
answered by esther c 4
·
0⤊
0⤋
Interpreter : it interpret each statement by statement and execute it. it check for error when t actually run the program. if error occur in a statement it will not even read other statement present in the program. most script language are example of interpreter based working. this program can work any were and in any OS if the interpret is installed.
Compiler: It compile the program into to standard format of it own for where it linked by linker to get executable files. a program that compiled & linked on a windows machine will run only on windows not on any other os. the complier create the executable format of the file for that system
2006-08-28 10:30:56
·
answer #5
·
answered by Anonymous
·
0⤊
0⤋
An interpreter allows you to view the compiled file, and a compiler compiles the project.
2006-08-28 09:44:37
·
answer #6
·
answered by Yoi_55 7
·
0⤊
0⤋
An interpreter takes the programming codes and translate them one line at a time and execute them whereas a compiler takes the whole programming codes and translate them all at onece before execution.
2006-08-28 09:44:33
·
answer #7
·
answered by Thor 5
·
0⤊
0⤋
interpreters interpret. compilers compile.
DUH.
2006-08-28 09:45:33
·
answer #8
·
answered by stephenalan 3
·
0⤊
0⤋