A compiler is a system software that translates high-level programming language code into machine code.
It checks the source code for errors and improves program efficiency.
The compiler works in different phases such as lexical analysis, syntax analysis, and code generation. https://en.wikipedia.org/wiki/Compiler