retagged by
11,641 views
31 votes
31 votes

Which one of the following is FALSE?

  1. A basic block is a sequence of instructions where control enters the sequence at the beginning and exits at the end. 
  2. Available expression analysis can be used for common subexpression elimination.
  3. Live variable analysis can be used for dead code elimination.
  4. $x=4*5 \Rightarrow x=20$ is an example of common subexpression elimination.
retagged by

1 Answer

Best answer
36 votes
36 votes
  1. A basic block is a sequence of instructions where control enters the sequence at the beginning and exits at the end is TRUE.
     
  2. Available expression analysis can be used for common subexpression elimination is TRUE. Available expressions is an analysis algorithm that determines for each point in the program the set of expressions that need not be recomputed. Available expression analysis is used to do global common subexpression elimination (CSE). If an expression is available at a point, there is no need to re-evaluate it.
     
  3. Live variable analysis can be used for dead code elimination is TRUE.
     
  4. $x = 4 ∗ 5 \Rightarrow x = 20$ is an example of common subexpression elimination is FALSE. Common subexpression elimination (CSE) refers to compiler optimization replaces identical expressions (i.e., they all evaluate to the same value) with a single variable holding the computed value when it is worthwhile to do so Source: Geeksforgeeks

Correct Answer: $D$

edited by
Answer:

Related questions

67 votes
67 votes
4 answers
2
60 votes
60 votes
7 answers
3
go_editor asked Sep 28, 2014
19,065 views
The minimum number of arithmetic operations required to evaluate the polynomial $P(X) = X^5+4X^3+6X+5$ for a given value of $X$, using only one temporary variable is ____...