Question: During the course of execution of a program, the processor will increment the contents of the instruction register (program counter) by one word after each
During the course of execution of a program, the processor will increment the contents of the instruction register (program counter) by one word after each instruction fetch, but will alter the contents of that register if it encounters a branch or call instruction that causes execution to continue elsewhere in the program. Now consider Figure 7.8.
.png)
There are two alternatives with respect to instruction addresses:
• Maintain a relative address in the instruction register and do the dynamic address translation using the instruction register as input. When a successful branch or call is encountered, the relative address generated by that branch or call is loaded into the instruction register.
• Maintain an absolute address in the instruction register. When a successful branch or call is encountered, dynamic address translation is employed, with the results stored in the instruction register.
Which approach is preferable?
Relative address Process control block Base register -- Program Adder Absolute address Bounds registerComparator Data Interrupt to operating system Stack Process image in main memory
Step by Step Solution
3.47 Rating (173 Votes )
There are 3 Steps involved in it
The use of absolute addresses reduces the number of times that dynamic a... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
451-C-S-D-B-O-S (121).docx
120 KBs Word File
