What Are Compilers Phases?


2 Answers

Anonymous Profile
Anonymous answered
These are:
syntax analysis
semantic analysis
intermediate code generation
code optimization
code generation
Lily James Profile
Lily James answered

A Compiler is basically a type of Computer program. It is used for translation of text written in a source computer language to another computer language also known as the target language. This process is primarily undertaken to create an executable program.

The Compiler undergoes the following sequence of phases:
- Pre- processing
- Front end parsing
- Semantic Analysis
- Loop Transformations
- Inter procedural analysis
- Code Optimization
- Allocation of register
- Assembly
- Assembler
- Linking

Answer Question