Question: The table below contains the link-level details of two different procedures. In this exercise, you will be taking the place of the linker. Link the

The table below contains the link-level details of two different procedures. In this exercise, you will be taking the place of the linker.a. Text Segment Data Segment Symbol Table Address Instruction 0 4 0 *** Relocation Address Info 0 4 Procedureb. Text Segment Data Segment Procedure A Address Instruction Symbol Table 0 4 www 0x84 www 0 *** Relocation

Link the object files above to form the executable file header. Assume that Procedure A has a text size of 0x140 and data size of 0x40 and Procedure B has a text size of 0x300 and data size of 0x50. Also assume the memory allocation strategy as shown in Figure 2.13.$sp-7fff fffChex $gp-1000 8000 hex 1000 0000 hex pc-0040 0000 hex 0 Stack  Dynamic data Static data Text

a. Text Segment Data Segment Symbol Table Address Instruction 0 4 0 *** Relocation Address Info 0 4 Procedure A Address lbu $a0, 0($gp) jal 0 (X) *** Instruction Type lbu jal Symbol X B Dependency X B Text Segment Data Segment Procedure B Address Instruction Symbol Table 0 4 0 Relocation Address Info 0 4 Address sw $a1, 0($gp) jal 0 (Y) *** Instruction Type SW jal Symbol Y A Dependency Y A

Step by Step Solution

3.43 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Organization Design Questions!