A compiler is a program. A compiler takes the recipe (code) for a new program (written in a high level language) and transforms this Code into a new language (Machine Language) that can be understood by the computer itself.
What are the 4 types of compilers?
Types of Compiler
- Cross Compilers. They produce an executable machine code for a platform but, this platform is not the one on which the compiler is running.
- Bootstrap Compilers. These compilers are written in a programming language that they have to compile.
- Source to source/transcompiler. ...
- Decompiler.
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.