in Compiler Design retagged by
8,809 views
2 votes
2 votes

Which of the following is machine independent optimization?

  1. Loop optimization
  2. Redundancy Elimination
  3. Folding
  4. All of the option
in Compiler Design retagged by
by
8.8k views

4 Answers

4 votes
4 votes

Machine Independent optimization: Loop optimization, Redundancy elimination, folding, Strength reduction, Deadlock elimination.

Machine Dependent optimization: Register allocation, Use of addressing modes, Peephole optimization.

1 vote
1 vote
1 vote
1 vote

Machine independent optimization attempts to improve the intermediate code to get a better target code. The part of the code which is transformed here does not involve any absolute memory location or any CPU registers.

All of these are machine independent optimization.

Ref: https://www.javatpoint.com/machine-independent-optimization

0 votes
0 votes
option D

machine independent optimization examples are 1 loop optimization

2 constant folding

3 loop unrolling

4 loop jamming

5 redundancy elemination

6 code motion or frequency reduction

7 strength reduction
Answer:

Related questions