What are compilers and interpreters?
Compiler and Interpreter: These are two types of language translators.
A compiler changes the source program (user-written program) into an object code (machine language by checking the whole program before implementation. If the program is error free, object program is formed and loaded into memory for implementation. A compiler produces an error list of the program in one go and all have to be taken care even before the implementation of first statement begin. It takes less time for implementation. An interpreter is also a language translator that translates and implements statements in the program one by one. It work on one statement at a time and if error free, implements the instruction before going to second instruction. Debugging is easier in interpreter as it is done in stages. An interpreter takes more time for implementation of a program as compared to a compiler.