Consider the following statements about the use of backpatching in a compiler…

GATE · 2025 · CS · Set 2 · Computer Science & IT

Consider the following statements about the use of backpatching in a compiler for intermediate code generation:

(I) Backpatching can be used to generate code for Boolean expressions in one pass.

(II) Backpatching can be used to generate code for flow-of-control statements in one pass.

Which ONE of the following options is CORRECT?

  1. A.

    Only (I) is correct.

  2. B.

    Only (II) is correct.

  3. C.

    Both (I) and (II) are correct.

  4. D.

    Neither (I) nor (II) is correct.

Attempted by 228 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…