Beruflich Dokumente
Kultur Dokumente
Assembler
An Assembler is a program that accepts as input an assembly language
program and produces its machine language along with information for the
loader
Assembler
Assembly
Data bases Machine Language and
language
other information for the
program
loader
\
1. We read the start instruction and note that it is a pseudo op instruction giving john as
the name of this program , the assembler must pass the name to the loader.
2. The next is the using pseudo op instruction. This tells the assembler that register 15 is
the base register and at execution time will contain the address of the first instruction
of the program.
SYNTHESIS PHASE:
This phase uses the data structures & IR prepared by the Pass I to
produce target Code.
EXAMPLE
Consider the assembly statement:-
MOVER BREG , ONE
for this, machine instruction:-
SYMTAB
LITTAB
MOT
POT
LC
POOLTAB
SYMTAB
5. The symbol table (ST), used to store each label and its corresponding
value.
6. The Literal Table (LT), used to store each literal encountered and its
corresponding assigned location.
Collected By: pallavi
Pass Structures of Assembler
Single pass assembler
Two pass assembler
Single pass
Scans the input file only once
Generally faster than two pass assembler
Performs LC processing
2) Initially the LC is set to the first location of the program(relative address 0).
After all the symbols have been defined by pass1, it is possible it is possible
to finish the assembly by processing each card and determining values to
its operation code and its operand field.
Pass 1 Database: