edited by
1,622 views
0 votes
0 votes
Which of the following is correct?
a. One of the purposes of using intermediate code in compilers is to improve the register allocation. b. Leaf node of the tree always have only inherited attribute. c.  The difference between assembly code generation and intermediate code generation lies in the number of registers used by both of them to hold the intermediate results.
d.  The output of intermediate code generation is machine dependent.
edited by

1 Answer

0 votes
0 votes
Increase the chances of reusing the machine-independent code optimizer in other compilers.

Intermediate code is machine independent code which makes it easy to retarget the compiler
to generate code for newer and different processors.

Related questions

0 votes
0 votes
1 answer
1
Çșȇ ʛấẗẻ asked Dec 30, 2016
203 views
Suppose d= 5+ e then how many register are used to calculate d i am confused as it is 2 or 3 ??
0 votes
0 votes
0 answers
3
nbhatt asked Jan 12, 2023
440 views