Interpreter

108

InterpreterAn interpreter is another type of program translator used for translating higher-level language instructions into machine language instructions. It takes one statement of higher-level language at a time, translates it into machine language and executes it immediately. Translation and execution are carried out for each statement. It differs from compiler, which translate the entire source program into machine code and then involve in its execution.
The advantage of interpreter compared to compiler is its fast response to changes in source program. It eliminates the need for a separate compilation after changes to each program. Interpreters are easy to write and do not require large memory in computer. The disadvantage of interpreter is that it is time-consuming method because each time a statement in a program is executed, it is first translated. Thus compiled machine language program runs much faster than an interpreted program.




Leave a Reply

Your email address will not be published. Required fields are marked *