COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

COMPILATION PROCESS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
if there are no errors tokens are converted into object code. Code is optimised at this stage
A
Lexical analysis
B
syntax analysis
C
semantic analysis
D
code generation
Explanation: 

Detailed explanation-1: -Peephole optimization comes under machine-dependent optimization. Machine-dependent optimization occurs after the target code has been generated and transformed to fit the target machine architecture. It makes use of CPU registers and may make use of absolute memory references rather than relative memory references.

Detailed explanation-2: -Optimization is a program transformation technique, which tries to improve the code by making it consume less resources (i.e. CPU, Memory) and deliver high speed. In optimization, high-level general programming constructs are replaced by very efficient low-level programming codes.

There is 1 question to complete.