Answer: second pass
An assembler is
responsible for translating low-level assembly code into relocatable machine
code and creating data for the loader.
In Two-pass assembler,
on the first pass check the syntax of statements and construct a table of
symbols , while on the second pass it actually translates program statements
into machine language(object code).
PASS1 reads the characters
from the source code and inserts labels and their values into the symbol table.
PASS2 reads the
characters from the source listing and generates machine code, which is put
into the object code
0 comments:
Post a Comment