Ask a Question

How forward reference is tackled by one pass and two pass assembler?

on 2010-06-02 14:07:59   by Sourav   on Computer Science & Engineering  1 answers

Administrator

on 2010-06-04 09:30:00  

Forward Reference in One-pass Assembler Omits the operand address if the symbol has not yet been defined  Enters this undefined symbol into SYMTAB and indicates that it is undefined  Adds the address of this operand address to a list of forward references associated with the SYMTAB entry  When the definition for the symbol is encountered, scans the reference list and inserts the address.  At the end of the program, reports the error if there are still SYMTAB entries indicated undefined symbols.