What is a compiler and what is its use?

Do you know what is compiler? If not, then there is a great opportunity for you to understand this technology easily. Whether you are from a technical student or a non-tech background, it is good for everyone to understand this compiler. Because it is used in all places. By the way, it is very important for a Computer Science student to understand it. Because if you have to understand about programming completely then it becomes very important to know about the work of the compiler.

By the way, if I say a compiler in easy language, then it is a program that converts a source language to a target language as per the requirement. In a computer, it converts High level language into Machine Language. So today I thought, why should I give you complete information about what is the work of the compiler so that in the coming time you already know about this basic technology. So let's start without delay and know what the compiler is called and how it works.

A Compiler is a software program that transforms high-level source code written by a developer into a high-level programming language into a low level object code (binary code) machine language, and which Can be shared easily through the Key Processor. This process in which high-level programming is converted to machine language is called Compilation.

What is compiler called
Like I have already introduced you to the technical definition of Compiler, as everyone often does, but now let me explain you the definition of Compiler in a very easy language so that even a non-technical person Can understand.

For some time, forget about the compiler and imagine that you have gone to a beautiful country to spend your vacation. A very basic problem in this is that you speak, write and understand only in your regional language which is Hindi. But the citizens of that country do not know anything except English. Then how will you communicate with others there?

What is CMOS and how does it reduce
What is C language and how to learn
What is Software Process
In such a situation, the only solution is that you will need a language translator, which can be a human or a book or even an App. This language translator will translate your Hindi into English so that the other person can understand your words. Together, he will convert English into Hindi as well so that you too can understand his language.

The same thing happens with a computer. Computers also understand only binary language (language which consists of 0s and 1s), while users who understand Computer as English or any language. In such a situation, how will the computer understand the commands given by you? Also, you will not understand any process calculation performed by the computer. In such a situation, there is a need for a language translator so that it can match the two.

When we do some commands to the computer to process, then we write some set of instructions-program in English language like c, c ++, java etc. which is in English itself and it needs a language translator. To convert in binary language so that a computer can understand it easily. In such a situation, Complier is used in this place, which converts high level language into machine language.

What are the Major Parts of Compliers
By the way, the compiler mainly has two major parts:

Analysis phase
The first part is the analysis phase, in which an intermediate representation is created from a given source program. The main parts of this phase are - Lexical Analyzer, Syntax Analyzer and Semantic Analyze.

Synthesis Phase
The second part is the synthesis phase, in which the equivalent target program is created by intermediate representation. The main parts of this phase are - Intermediate Code Generator, Code Generator, and Code Optimizer.

Comments

Popular posts from this blog

What is CMOS and how does it mitigate?

What is a Command Processor?

What is DBMS and what is its function?