https://en.wikipedia.org/wiki/Compiler
A compiler is a computer program that transforms computer code written in one programming language (the source language) into another programming language (the target language).
A compiler is likely to perform many or all of the following operations: preprocessing, lexical analysis, parsing, semantic analysis (syntax-directed translation), conversion of input programs to an intermediate representation, code optimization and code generation.
Compiler vs. Interpreter
Compiler takes
Interpreter directly executes instructions written in a programming or scripting language without previously converting them to an object(or machine) code. Example: Perl, Python, Matlab
Comment is the energy for a writer, thanks!