Register-Allocation

Question 1

Consider the expression (a-1)*(((b+c)/3)+d)). Let X be the minimum number of registers required by an optimal code generation (without any register spill) algorithm for a load/store architecture, in which (i) only load and store instructions can have memory operands and (ii) arithmetic instructions can have only register or immediate operands. The value of X is ___________.

A
2
B
3
C
4
D
5
       Compiler-Design       Register-Allocation       GATE 2017 [Set-1]       Video-Explanation
Question 1 Explanation: 
(a-1)*(((b+c)/3)+d)
There is 1 question to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access