Question

8.- (11 points) On Assemblers and Loaders: a) Define: relocating loader, relocation bits, and relocating Segment. b) In a two
0 0
Add a comment Improve this question Transcribed image text
Answer #1

8.

a

Relocating loader: Relocation loader is used for modifying the address of the program so that it can be loaded at different location. In simpler words relocating loader makes the program to load in a different address location. Relocating loader can load the program anywhere in memory. Reloacting also alters the various addresses to ensure correct referencing.

Relocating bits: Relocating bits are used by relocating loaders. The relocating bits are specified with the help of linker. The relocating bits are used if there is a high requirment of relocations. Addressing modes used in relocaitng bits is direct addressing mode.

Relocating segment: If any data segment stored using a relocatable address then it is called relocating segment.

b)

Two pass assembler:

pass 1: Define symbols and literals.

->The symbols are also stored in the symbol table. The literals are also stored in the literal table.

->The instructions are kept tracking using location counter.

->process the pseudo operations.

pass 2:

->Object program is generated .

->Uses the symbols and literal tables defined in the pass1.

->Output program is also generated

Thank you.

Give a like for appreciation. Feel free to comment your doubts.

Add a comment
Know the answer?
Add Answer to:
8.- (11 points) On Assemblers and Loaders: a) Define: relocating loader, relocation bits, and relocating Segment....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT