What is compiler and interpreter ?
Answers
Answered by
26
Hey friend,
Here is your answer:
Compiler is a translator program that converts high level language to machine level language at one go.
Interpreter is a translator program that converts high level language to machine level language line by line.
Hope it helps u.
Here is your answer:
Compiler is a translator program that converts high level language to machine level language at one go.
Interpreter is a translator program that converts high level language to machine level language line by line.
Hope it helps u.
siddhartharao77:
Nice Explanation AarohiA...
Answered by
40
⚛️ COMPILER ⚛️
It converts HLL program into machine language, which can be understood by the processor. For each high level language, the machine requires a separate compiler. A compiler creates a unique object program, i.e. if a source program is compiled, there is no need of that source program because output can be obtained by executing that object program (copy created by the compilation of source code). Compiler converts the entire HLL program in one go and reports all the errors of the program along with the line numbers.
Some basic functions of compiler are as follows:
◾It translates entire program at a time.
◾It converts source code into machine language.
◾It provides information on the size of area of main memory to be allocated to the program.
____________________________________
⚛️ INTERPRETER ⚛️
It converts a HLL program into machine language by converting it line-by-line. If there is any error in any line, it stops the execution of the program immediately and reports the user at the same time and program . execution cannot resume until the error is rectified by the user.
Interpreter is very useful for debugging and suitable for novice programmer. This is a slow process and consumes less memory space.
Some basic functions of an interpreter are as follows:
◾Translates one instruction at a time.
◾It checks the execution of the instructions line-by-line.
◾It does not produce object code.
It converts HLL program into machine language, which can be understood by the processor. For each high level language, the machine requires a separate compiler. A compiler creates a unique object program, i.e. if a source program is compiled, there is no need of that source program because output can be obtained by executing that object program (copy created by the compilation of source code). Compiler converts the entire HLL program in one go and reports all the errors of the program along with the line numbers.
Some basic functions of compiler are as follows:
◾It translates entire program at a time.
◾It converts source code into machine language.
◾It provides information on the size of area of main memory to be allocated to the program.
____________________________________
⚛️ INTERPRETER ⚛️
It converts a HLL program into machine language by converting it line-by-line. If there is any error in any line, it stops the execution of the program immediately and reports the user at the same time and program . execution cannot resume until the error is rectified by the user.
Interpreter is very useful for debugging and suitable for novice programmer. This is a slow process and consumes less memory space.
Some basic functions of an interpreter are as follows:
◾Translates one instruction at a time.
◾It checks the execution of the instructions line-by-line.
◾It does not produce object code.
Attachments:
Similar questions