Code Generation and Optimization (original) (raw)

Match the description of several parts of a classic optimizing compiler in List - I, with the names of those parts in List - II: Capture11

Consider the following source code :

c = a + b d = c c = c – e a = d – e b = b * e b = d/b

Which of the following is correct optimization of given code?

Consider the following expression

uv+a-bc

Which one of the following corresponds to a static single assignment from the above expressions

Consider the code segment

int i, j, x, y, m, n;
n=20;
for (i = 0, i < n; i++)
{
for (j = 0; j < n; j++)
{
if (i % 2)
{
x + = ((4j) + 5i);
y += (7 + 4*j);
}
}
}
m = x + y;

Which one of the following is false

Peephole optimization is form of

Which of the following is NOT represented in a subroutine's activation record frame for a stack-based programming language?

In compiler terminology reduction in strength means

Which of the following statements about peephole optimization is False?

The use of multiple register windows with overlap causes a reduction in the number of memory accesses for I. Function locals and parameters II. Register saves and restores III. Instruction fetches

Substitution of values for names (whose values are constants) is done in

There are 38 questions to complete.

Take a part in the ongoing discussion