Q10. What is the function of assembler, compiler and interpreter?
Assembler: This language processor converts the program written in assembly language into machine language.
Compiler: It converts the entire HLL (High Level Language) program in one go, and reports all the errors of the program along with the line numbers. After all the errors are removed, the program is recompiled, and after that the compiler is not needed in the memory as the object program is available.
Interpreter: It converts the entire HLL (High Level Language) program into machine language by converting and executing it line by line. If there is any error in any line, it reports it at the same time and program execution cannot resume until the error is rectified.