retagged by
17,512 views
39 39 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.

2 Answers

Best answer
52 52 votes
  1. A basic block is a sequence of instructions where control enters the sequence at the beginning and exits at the end, which 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:
Position:
Show:

Related questions

78 78 votes
11 answers 11 answers
33.2k
33.2k views
go_editor asked Sep 28, 2014
33,188 views
Consider a $6$-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is exec...
56 56 votes
7 answers 7 answers
47.9k
47.9k views
go_editor asked Sep 26, 2014
47,866 views
A canonical set of items is given below$S \to L . R $$Q \to R.$On input symbol $<$ the set hasa shift-reduce conflict and a reduce-reduce conflict.a shift-reduce conflict...
88 88 votes
6 answers 6 answers
52.7k
52.7k views
go_editor asked Sep 28, 2014
52,690 views
Consider the basic block given below. a = b + c c = a + d d = b + c e = d - b a = e + b The minimum number of nodes and edges present in the DAG representation of the abo...
82 82 votes
8 answers 8 answers
31.5k
31.5k views
go_editor asked Sep 28, 2014
31,469 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 ____...