Compiler:
- Compiler is a pre-defined program(software). It is responsible for checking syntax errors in the program. If the source is syntactically correct, then it will generate a file of binary code. After compilation, an intermediate file will be generated.
- Compiler – Converts the source code all at once
Interpreter:
- Interpreter is a program(software). Interpreter converts the input file line by line. Once the instruction converted, will be submitted for execution(instant run of instruction).
- Note that, an intermediate file will not generate after interpretation as it is executing instantly.