Recent Post

Introduction of Compiler

What is a compiler ?
- A compiler is a program that reads a program written in one language and translates it into an equivalent program in another language.

Input Language : It is called Source Language
Output Language : It is called Target Language

A Compiler also reports errors present in the source program as a part of its translation process.




Types of Compiler :-
- Single Pass Compiler
- Multi Pass Compiler

The 2 parts of the compilation

Analysis :-
It takes the input source program and breaks it into parts.
It then creates an intermediate representation of source program.

Synthesis :-
It takes the intermediate representation as the input.
And creates the desired target program.

No comments