Intermediate Code
Study notes are awaiting editorial approval. You can still practise the reviewed questions below.
Related previous-year questions
Practise this topic- 2025 · Consider the following statements about the use of backpatching in a compiler for intermediate code generation: (I) Backpatching can be used to gener
- 2025 · Refer to the given 3-address code sequence. This code sequence is split into basic blocks. The number of basic blocks is ________. (Answer in integer)
- 2024 · Consider the following pseudo-code. $L1: t1 = -1$ $L2: t2 = 0$ $L3: t3 = 0$ $L4: t4 = 4 * t3$ $L5: t5 = 4 * t2$ $L6: t6 = t5 * M$ $L7: t7 = t4 + t6$ $
- 2024 · Consider the following expression: $x[i] = (p + r) * -s[i] + u/w$. The following sequence shows the list of triples representing the given expression,
- 2021 · In the context of compilers, which of the following is/are NOT an intermediate representation of the source program?
- 2021 · Consider the following C code segment: ``` a = b + c; e = a + 1; d = b + c; f = d + 1; g = e + f; ``` In a compiler, this code segment is represente
- 2017 · Consider the following intermediate program in three address code ``` p = a - b q = p * c p = u * v q = p + q ``` Which one of the following corresp
- 2016 · 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
- 2015 · In the context of abstract-syntax-tree (AST) and control-flow-graph (CFG), which one of the following is TRUE?
- 2015 · 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
- 2015 · 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 *
- 2014 · One of the purposes of using intermediate code in compilers is to