# Code Generation and Optimization · Compiler Design · GATE CSE

Start Practice

## Marks 1

GATE CSE 2020
Consider the following statements. I. Symbol table is accessed only during lexical analysis and syntax analysis. II. Compilers for programming languag...
GATE CSE 2014 Set 1
Which one of the following is FALSE?
GATE CSE 2010
Which languages necessarily need heap allocation in the runtime environment?
GATE CSE 2008
Some code optimizations are carried out on the intermediate code because
GATE CSE 2004
Consider the grammar rule $$E \to {E_1} - {E_2}$$ for arithmetic expressions. The code generated is targeted to a CPU having a single user register. T...
GATE CSE 1990
Match the followings: Group-I (a) Pointer data type (b) Activation Record (c) Repeat -Until (d) Coercion Group-II (p) Type Conversion (q) Dyn...

## Marks 2

GATE CSE 2024 Set 1
Consider the following pseudo-code. L1: t1 = -1L2: t2 = 0L3: t3 = 0L4: t4 = 4 * t3L5: t5 = 4 * t2L6: t6 = t5 * ML7: t7 = t4 + t6L...
GATE CSE 2023
Consider the control flow graph shown. Which one of the following choices correctly lists the set of live variables at the exit point of each basic b...
GATE CSE 2015 Set 2
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) ...
GATE CSE 2015 Set 1
A variable x is said to be live at a statement $${S_i}$$ in a programif the following three conditions hold simultaneously: i. There exists a statemen...
GATE CSE 2015 Set 1
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 -... GATE CSE 2014 Set 2 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 bit... GATE CSE 2006 Consider the following translation scheme.$$\eqalign{ & S \to ER \cr & R \to *E\left\{ {pr{\mathop{\rm int}} ('*');} \right\}R\,|\,\var...
GATE CSE 2006
Consider the following C code segment. for (i = 0; i < n; i++) { for (j=0; j < n; j++) { if (i%2) { ...
GATE CSE 2005
Consider line number 3 of the following C - program. int main ( ) { /* Line 1 */ int I, N; /* Line 2 */ fro (I = 0, I...
GATE CSE 2003
Consider the syntax directed definition shown below. Here, gen is a function that generates the output code, and newtemp is a function that returns t...
GATE CSE 2003
Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries?
EXAM MAP
Medical
NEET