An interpreter is a translator of high level language program.The function of these translator is to convert high level program into machine code.These translators translate one instruction at a time.A Compiler is a translator which is used to translate the whole source of a program at a time.
Difference Between compiler and interpreter:
Compiler:
A program which translates a high level language program into a machine language program is called compiler.
A program written by a programmer in a high level language is called source program.
After this source program has been converted into machine language by compiler it is referred to as an object program.
Interpreter:
An interpreter is a program which translates one statement of a high language program into machine code and executes it.
In this way it precedes further the all statement of the program are translated and executed.
On the other hand, a compiler goes through the entire high level language program once or twice and then translates the entire program into machine codes.
As compare to compiler interpreter is the smaller program.
Compiler:
A program which translates a high level language program into a machine language program is called compiler.
A program written by a programmer in a high level language is called source program.
After this source program has been converted into machine language by compiler it is referred to as an object program.
Interpreter:
An interpreter is a program which translates one statement of a high language program into machine code and executes it.
In this way it precedes further the all statement of the program are translated and executed.
On the other hand, a compiler goes through the entire high level language program once or twice and then translates the entire program into machine codes.
As compare to compiler interpreter is the smaller program.
A Compiler compiles all the source code at once and executes. An Interpreter interprets line by line, one line at a time and executes that line.
Differentiate between Compiler and Interpreter.
Please correct the following spelling problems
No spelling problems found
Please correct the following spelling problems
No spelling problems found
Give examples interpreter and compiler.
A compiler takes all the codes and executes, whereas, an interpreter executes the codes line by line.
Interpreter is someone who mediates between speakers of different languages while compiler is a person who compiles information (as for reference purposes).
Differentiate Between Compiler And Interpreter
A compiler convert the source code to machine code at once and interpreter does the same line by line
www.soopertutorials.com
www.soopertutorials.com