Compiler Design GATE CS and IT previous year questions with answer
Ques 21 GATE 2014 SET-3
The primary reason of using intermediate code in compilers is to
Ques 22 GATE 2014 SET-3
Which of the following statements are CORRECT?
1) Static allocation of all data areas by a compiler makes it impossible to implement recursion.
2) Automatic garbage collection is essential to implement recursion.
3) Dynamic allocation of activation records is essential to implement recursion.
4) Both heap and stack are essential to implement recursion.
Ques 23 GATE 2014 SET-3
Consider the basic block given below.
a = b + c
c = a + d
d = b + c
e = d β b
a = e + b
The minimum number of nodes and edges present in the DAG representation of the above basic block respectively are
Ques 24 GATE 2014 SET-1
A canonical set of items is given below:
S → L. > R
Q → R.
On input symbol <, the set has