Skip to content
Early access — you're among the first to try PYQLabs. Share feedback
Concept drill

intermediate code

GATE CSE & IT · Compilers - Intermediate Code Generation · 1994-2025

9
PYQs
78%
keyed
0
elite explanations
7
years appeared

Study anchor

Source-book anchor pending for this concept.

Practice action

Start latest PYQ

PYQs in this concept

All concepts →
2025 Q21

Consider the following statements about the use of backpatching in a compiler for intermediate code generation: (I) Backpatching can be used to generate code for Boolean expression...

mediumanswer key
2024 Q43

Consider the following expression: x[i] = (p + r) * -s[i] + u/w. The following sequence shows the list of triples representing the given expression, with entries missing for triple...

mediumanswer key
2016 PYQ

Consider the following code segment. x = u - t; y = x * v; x = y + w; y = t - z; y = x * y; The minimum number of total variables required to convert the above code segment to stat...

easy
2015 PYQ

The least number of temporary variables required to create a three-address code in static single assignment form for the expression $$q + r / 3 + s - t * 5 + u * v/w$$ is _________...

medium
2015 PYQ

Consider the intermediate code given below. (1) i = 1 (2) j = 1 (3) t1 = 5 ∗ i (4) t2 = t1 + j (5) t3 = 4 ∗ t2 (6) t4 = t3 (7) a[t4] = -1 (8) j = j + 1 (9) if j<=5 goto (3) (10) i=...

mediumanswer key
2014 PYQ

For a C program accessing X[ i ] [ j ] [ k ], the following intermediate code is generated by a compiler. Assume that the size of an integer is 32 bits and the size of a character...

mediumanswer key
2014 PYQ

One of the purposes of using intermediate code in compilers is to

easyanswer key
2008 PYQ

Some code optimizations are carried out on the intermediate code because

easyanswer key
1994 PYQ

Generation of intermediate code based on an abstract machine model is useful in compilers because

easyanswer key