recategorized by
633 views
1 votes
1 votes

Some code optimizations are carried out on the intermediate code because:

  1. they enhance the portability of the compiler to other target processors
  2. program analysis is more accurate on intermediate code than on machine code
  3. the information from data flow analysis cannot otherwise be used for optimization
  4. the information from the front end cannot otherwise be used for optimization
recategorized by

1 Answer

0 votes
0 votes

 

Program analysis is more accurate on intermediate code than on machine code. It is also correct but the most optimal answer is A .

 

A. They enhance the portability of the compiler to other target processors ..

Answer:

Related questions

469
views
1 answers
1 votes
gatecse asked Dec 9, 2020
469 views
Which of the following is not true for tree and graph?A tree is a graphA graph is a treeTree can have a cycleTree is a $\text{DAG}$
486
views
1 answers
1 votes
gatecse asked Dec 9, 2020
486 views
Peephole optimization is a :Loop optimizationLocal optimizationConstant foldingData flow analysis
424
views
1 answers
1 votes
gatecse asked Dec 9, 2020
424 views
Assume that the $\text{SLR}$ parser for a grammar $\text{G}$ has $n_{1}$ states and the $\text{LALR}$ parser for $\text{G}$ has $n_{2}$ states. ... $n_{1}$ is necessarily greater than $n_{2}$none of the options
737
views
3 answers
1 votes
gatecse asked Dec 9, 2020
737 views
In case of the dynamic programming approach the value of an optimal solution is computed in :Top down fashionBottom up fashionLeft to Right fashionRight to Left fashion