Social Sciences, asked by shariq7082, 1 year ago

Discuss the advantages and disadvantages of one pass assembler

Answers

Answered by krithi1102owl40k
4
Advantages:
One-pass assemblers are used when

it is necessary or desirable to avoid a second pass over the source program the external storage for the intermediate file between two passes is slow or is inconvenient to use

Disadvantages:

Main problem: Forward references to both data and instructions. One simple way to eliminate this problem: require that all areas be defined before they are referenced.It is possible, although inconvenient, to do so for data items.Forward jump to instruction items cannot be easily eliminated.
Answered by dackpower
1

A single pass assembler investigates the program only once and generates the comparable binary program. The assembler backup all of the symbolic instruction with engine code in one pass.

Advantages:

One-pass assemblers are utilized when

1.    it is important or beneficial to withdraw a second pass over the authorization program.

2.    the outside storage for the standard file among two approaches is slow or is inaccessible to utilize.

Disadvantages:

1.    The central problem is forwarding confirmation to both data and regulations.

Moreover, the forward jump to instruction objects cannot be efficiently eliminated.

Similar questions