explain pass-1 algorithm of passes used in


Explain pass-1 algorithm of passes used in two-pass assembler?

Pass I:

(i) Separate the symbol, operand fields and mnemonic opcode

(ii) Make the symbol table

(iii) Perform the LC processing

(iv) Constructs intermediate representation.

Pass I uses the subsequent data structures:

OPTAB: A table of associated information and mnemonic opcodes

SYMTAB: It is a symbol table

LITTAB: A table literally utilized in the program

OPTAB consists of the field mnemonic opcode, information and class. The class field shows whether the opcode corresponds to a declaration statement (DL) an imperative statement (IS) or an assembler directive (AD).

SYMTAB entry consists of the fields address and length.

A LITTAB entry consists of literals and address.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: explain pass-1 algorithm of passes used in
Reference No:- TGS0276958

Expected delivery within 24 Hours