in Compiler Design edited by
1,635 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.
in Compiler Design edited by
by
1.6k views

1 comment

Is B the answer?
0
0

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.

3 Comments

answer given is (C)

but I think D should be the answer
0
0
@cse23 Intermediate code is machine independent. Example- Byte codes gemerated in Java are intermediate codes and they are machine independent.
3
3