Consider the expression (a - b) + e * (c + d). Let X be the minimum number of…

2025

Consider the expression (a - b) + e * (c + d). Let X be the minimum number of registers required by an optimal code generation 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: B. 3

  1. A.

    4

  2. B.

    3

  3. C.

    2

  4. D.

    12

Attempted by 56 students.

Show answer & explanation

Correct answer: B

Explore the full course: Mppsc Assistant Professor Computer Science Paper 2

Loading lesson…