What is compiler
A Compiler is a computer program that runs before the execution of the program. it converts your program code from programming language code to machine language code(binary code). so that code can be executed by the CPU.
- First its analysis the code line by line to check the syntax and logical errors. If occurs it through the error
- After analysis, it converts the program from a high-level programming language to an intermediate programming language.
What is Interpreter
An Interpreter is a computer program the directly execute the program without compiling it previously. It converts your program line by line from high-level-programming language to the intermediate programming language.
- It converts the code line by line from a high-level programming language to an intermediate programming language. And execute them.
- It does not through syntax errors.