Biology, asked by nusrath7830, 1 year ago

Explain the problems faced by a one pass assembler

Answers

Answered by arshianegi
1
hey friend!
here is your answer
The translation performed by an assembler is essentially a collection of substitutions:

machine operation code for mnemonicmachine address for symbolicmachine encoding of a number for its character representation, etc.

Except for one factor these substitutions could all be performed in one sequential pass over source text.The factor is the forward reference(reference to an instruction which has not yet been scanned by assembler).

Now it's that the separate passes of two pass assemblers are required to handle forward references without restriction.

Now if we impose certain restriction that means handling forward references without making two passes. These different sets of restrictions lead to one pass assembler.

And these one-pass assembler are particularly attractive when secondary storage is either slow or missing entirely, as on many small machines.

Similar questions