One Pass Assembly
Pros | Cons |
The assembler takes less time | The whole program must be stored in memory which limits program size |
Input file read-only once | More difficult to implement |
Two-Pass Assembly
Pros | Cons |
Easier to implement | Input files read twice |
Does not need the whole program to be loaded in memory. | The assembler takes more time |
Solving issue with one pass assembly > Backlatching
The Hack Assembler | Going twice over the code