Assembler - Design - Options
Assembler - Design - Options
Faculty: SREEDIVYA I
Subject: System Programming
One pass assembler
• Only one pass
• It involves forward references.
• One method to reduce forward reference problem is to define the
symbol in the program before reference.
• It is a difficult task and practically not easy.
• Two main types of one pass assembler are:
1. One type produces object code directly in memory for
immediate execution (load and go assembler)
2. Other type produces the usual kind of object program for later
execution.
Type 1: Load and Go Assembler
• Use a symbol table to store symbols that are not totally defined yet.
• For an undefined symbol in its entry,
• Store the names and number of undefined symbols which contribute to the
calculation of its value
• Also keep a list of symbols whose values depend on the defined value of this
symbol
• When a symbol becomes defined, we use its value to reevaluate the values of all
of the symbols that are kept in this list.
• The above step is performed recursively.