A simple two-pass assembler does which of the following in the first pass:

2016

A simple two-pass assembler does which of the following in the first pass:

  1. A.

    Checks to see if the instruction are legal in the current assembly mode.

  2. B.

    It allocates space for the literals.

  3. C.

    It builds the symbol table for the symbols and their values.

  4. D.

    All of these.

Attempted by 104 students.

Show answer & explanation

Correct answer: D

In the first pass, a two-pass assembler builds the symbol table, processes literals/storage allocation, and performs basic checks needed for assembly. Therefore all listed tasks are included.

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

Explore the full course: Isro