GATE CS 2017, set 1 · Question 52 · Compiler Design · Numerical answer (NAT) · 2 marks · no negative marks

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 ______ .

Answer

Answer 2

Answer from the official GATE CS 2017 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes