Introduction To Compilers

A Compiler is a software that takes typically takes a high level language (Like C++ and Java) code as input and converts the input to a lower level language at once. It lists all the errors if the input code does not follow the rules of its language. This process is much faster than interpreter but it becomes difficult to debug all the errors together in a program. 

A compiler is a translating program that translates the instructions of high level language to machine level language. A program which is input to the compiler is called a Source program. This program is now converted to a machine level language by a compiler is known as the Object code.

There are different Compilers :

  • Cross-Compiler – The compiled program can run on a computer whose CPU or Operating System is different from the one on which the compiler runs.
  • Bootstrap Compiler – The compiler written in the language that it intends to compile.
  • Decompiler – The compiler that translates from a low-level language to a higher level one.
  • Transcompiler – The compiler that translates high level languages.

A compiler can translate only those source programs which have been written in the language for which the computer is meant. Each high level programming language requires a separate compiler for the conversion.

For Example, a FORTRAN compiler is capable of translating into a FORTRAN program. A computer system may have more than one compiler to work for more than one high level languages.

Top most Compilers used according to the Computer Languages –

  • C– Turbo C, Tiny  C Compiler, GCC, Clang, Portable C Compiler
  • C++ -GCC, Clang, Dev C++, Intel C++, Code Block
  • JAVA– IntelliJ IDEA, Eclipse IDE, NetBeans, BlueJ, JDeveloper
  • Kotlin– IntelliJ IDEA, Eclipse IDE
  • Phyton– CPhyton, JPhyton, Wing, Spyder
  • JavaScript– WebStorm, Atom IDE, Visual Studio Code, Komodo Edit

Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.