Saturday, November 25, 2023

In a two pass assembler the object code generation is done during the ..............


 

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

Data Structures with C++



NET/SET/CS PG



Operating Systems



Computer Networks



JAVA



Design and Analysis of Algorithms



Programming in C++

Top