edited by
324 views
0 votes
0 votes

One of the purposes of using intermediate code in compilers is to:

  1. make parsing and semantic analysis simpler
  2. improve error recovery and error reporting
  3. increase the chances of reusing the machine – independent code optimizer in other compilers
  4. improve the register allocation
edited by

1 Answer

1 votes
1 votes

C. Increase the chances of reusing the machine-independent code optimizer in other compliers…

 

After semantic Analysis, the code is converted into intermediate code which is platform(OS + hardware) independent ...

The advantage of converting into intermediate code is to improve the performance of code generation and to increase the chances of reusing the machine-independent code optimizer in other compilers....

Related questions

1 votes
1 votes
1 answer
1
soujanyareddy13 asked Jan 9, 2022
941 views
Let the predicates $D(x,y)$ mean “team $x$ defeated team $y$” and $P(x,y)$ mean “team $x$ has played team $y$”. The quantified formula for the statement that ther...
0 votes
0 votes
1 answer
2
soujanyareddy13 asked Jan 9, 2022
602 views
The File Transfer Protocol is built on ______________.data centric architectureservice-oriented architectureclient server architectureconnection-oriented architecture
0 votes
0 votes
1 answer
3
soujanyareddy13 asked Jan 9, 2022
526 views
More than one word is put in one cache block to:exploit the temporal locality of reference in a programexploit the spatial locality of reference in a programreduce the mi...
0 votes
0 votes
1 answer
4
soujanyareddy13 asked Jan 9, 2022
437 views
In $\text{DPSK}$ technique, the technique used to encode bits is :$\text{AMI}$Differential codeUnipolar $\text{RZ}$ formatManchester formate