In a two-pass assembler, resolution of subroutine calls and inclusion of…

2020

In a two-pass assembler, resolution of subroutine calls and inclusion of labels in the symbol table is done during

  1. A.

    second pass

  2. B.

    first pass and second pass respectively

  3. C.

    second pass and first pass respectively

  4. D.

    first pass

Attempted by 178 students.

Show answer & explanation

Correct answer: D

Solution:

In a two-pass assembler, the first pass scans the source program and identifies labels, symbols, and subroutine references. During this phase, labels are entered into the symbol table, and the information required for resolving subroutine calls is collected.

Both the inclusion of labels in the symbol table and the resolution of subroutine calls are handled during the first pass.

Therefore, the correct answer is:

Option D) First Pass

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Isro