• edited by
2,077 views

1 Answer

2 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.
Position:
Show:

Related questions

1 1 vote
1 1 answer
1.1k
1.1k views
Markzuck asked Jan 8, 2019
1,128 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...
0 0 votes
2 2 answers
2.2k
2.2k views
manisha11 asked Nov 18, 2018
2,162 views
a x b x c + d - a + e x f - g + horder of precedence : x>+>- ; with x is left associative and +, - as right.Min number of variables required in TAC?Should'nt the expressi...
1 1 vote
0 0 answers
3.7k
3.7k views
Heena Jain asked Nov 14, 2018
3,675 views
What is the Static Single Assignment (SSA) form for the following code segment:a = b+c;c = a+x;d = b+c;d = a+x;Should we use only 1 temporary variable for c=a+x and d=a+x...
2 2 votes
1 1 answer
1.8k
1.8k views
rahul sharma 5 asked Jan 24, 2018
1,805 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 ...