edited by
1,540 views

1 Answer

2 votes
2 votes
Register allocation improvement is the job of code optimization(Machine dependent)

Output of Intermediate code generation is Machine independent, ICG is the last module of front end/Machine-Independent part of compiler. Output of ICG is taken by code optimization module which marks the beginning of machine dependent/Back end part of compiler.

Leaf node of a tree will not always have inherited attributes.

Eg S--->T+S|T

T-->id.

The difference between ICG code and assembly code lies in number of registers used for computation--->TRUE

ICG (uses as many temp. registers it needs without considering efficient usage)--->3 address cod(say)--->code optimization(reduces the number of register aloocation to minimal)--->target code generation------->Assembly language.

Related questions

1 votes
1 votes
1 answer
1
Markzuck asked Jan 8, 2019
768 views
someone please share detailed rules for this along with solution- would be of great help.and we usually dont take start and end state- arent they extra here? coz count co...
2 votes
2 votes
1 answer
4
rahul sharma 5 asked Jan 24, 2018
1,270 views
Consider the intermediate code given below:The number of nodes and edges in the control-flow graph constructed for the above code, respectively are X and Y. The value of ...