Unit
Unit
Introduction to compiling & Lexical Analysis Introduction of Compiler, Major data Structure in
compiler, types of Compiler, Front-end and Back-end of compiler, Compiler structure: analysis-synthesis
model of compilation, various phases of a compiler, Lexical analysis: Input buffering , Specification &
Recognition of Tokens,Design of a Lexical Analyzer Generator, LEX
Introduction to compiling
A compiler translates a program in a source language to a program in a target language. The most well
known form of a compiler is one that translates a high-level language like C into the native assembly
language of a machine so that it can be executed.
Basically, it translates the program written in the source language to the machine language.
Types of Compiler
Majorly, there are three types of compilers:
Operations of Compiler
The important tasks executed by the compiler are:
Breaks down the source programme into chunks and applies grammatical structure to each
one.
Enables you to create the symbol table and the target programme you’re after from the
intermediate representation.
Helps in compiling source code and detecting the errors.
Organise and save all codes and variables.
Separate compilation is supported.
Read the full programme, analyse it, and translate it to a semantically similar language.
Depending on the type of machine, converting source code to object code.