What is Assembler
How assembler works
Contents
Assembler
An assembler translates assembly language into machine code
Assembling Process
A SIC/XE source program looks like this
A Intermediate file looks like this
An object file looks like this
- Pass-1:
- Define symbols and literals and remember them in symbol table and literal table respectively.
- Keep track of location counter
- Process pseudo-operations
- Pass-2:
- Generate object code by converting symbolic op-code into respective numeric op-code
- Generate data for literals and look for values of symbols