The name "compiler" is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g. assembly language, object code, or machine code) to create an executable program.
What are examples of compilers?
The language processor that reads the complete source program written in high-level language as a whole in one go and translates it into an equivalent program in machine language is called a Compiler. Example: C, C++, C#, Java. 2.
Where is compiler and interpreter used?
A compiler generates the error message only after it scans the complete program and hence debugging is relatively harder while working with a compiler. Interpreters are used by programming languages like Ruby and Python for example. Compliers are used by programming languages like C and C++ for example.