Site icon i2tutorials

Compiler Design Tutorial

Introduction to Compiler Design

 

A compiler is a software that helps us to translate human-understandable language to Machine language, also called the Binary Language.

 

Compiler Design helps us understand the principles of understanding and the optimization process. It also helps us understand in-depth the translation mechanism and error detection as well as recovery. 

 

Why should we learn Compiler Design?

It is a difficult job for the programmers to write codes in 0s and 1’s, this work is done by the compilers. Therefore the need to learn Compiler Design comes here. Learning Compiler Design helps us in instructing the hardware that the codes need to be written in the binary format or in simple words in 0’s and 1’s.

 

Programs are written in a human-understandable language and then these programs are given to a series of OS components or tools, to convert that code into machine understandable code.

 

The pre-processor contains the source code which is processed. And this pre-processed code is then given to the compiler. The compiler gives the target assembly code which is then fed into the assembler. The assembler gives the linker the relocatable machine code. The linker converts the code into executable machine code which is fed into the loader and the loader sends it into the memory. 

 

Reference Link

Introduction to Compiler Design

Exit mobile version