1,997 views
1 votes
1 votes

Consider the evaluation of following expression tree on a machine in which memory can be accessed only through load and store instructions. The variable p, q, r, s, t and u are initially  stored in memory. The binary operators used in the tree can be evaluated by the machine only when all operands are in register. The instruction produce result only in a register.

What is the minimum number of registers needed to evaluate the expression if, no intermediate results can be stored in memory?

1 Answer

4 votes
4 votes

I think 3 registers required only

Related questions

1 votes
1 votes
0 answers
2
Aakash Das asked Oct 21, 2016
711 views
Do we have register interference graphs/ coloring in our syllabus and if so can someone please provide any online material for it.I am facing difficulty understanding how...
0 votes
0 votes
0 answers
3
nbhatt asked Jan 12, 2023
458 views