(a) Explain all the necessary phases and passes in compiler design. W…

Previous year question for Compiler Design.

Question

(a) Explain all the necessary phases and passes in compiler design. Write down the purpose of each pass.

(b) What do you understand by left factoring? Consider the following grammar

$S \rightarrow iEtS \mid iEtSeS \mid a$

$E \rightarrow b$

Write the procedure for the above to eliminate left factoring.

Related pages

More PYQs on Typical Structure of a Compiler

Open on CachedInfo