Lec ture13b an swer tru e fa l se

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Points: 10 The job of the link er is to tak e a s et of already c ompiled ".o" files and merge them, together with any needed library files , into a s ingle ex ec utable binary for ex ec ution. (Lec ture 13 B) An swer Tru e Fa l se 5. True/False: The beq in the following code will re... Qu estio n The beq in the following c ode will require an entry in the reloc ation table bec aus e it will be reloc ated at load time: beq $0, $s 0, HERE addi $a0, $a0, 1 HERE: add $s 0, $s 0, $s 0 (Lec ture 13 B) An swer Tru e Fa l se Points: 10 Co rrect F eed b ack Branc hes nev er require reloc ation. Points: 30 6. Fill in Multiple Blanks: Position independent code is code whi... Qu estio n Pos ition independent c ode is c ode whic h does not require reloc ation at either load time or link time. The following c ode is not pos ition independent: LOOP: beq $s 0, $0, END addi $s 0, $s 0, ­1 j LOOP END: addi $s 0, $s 0, 1 To mak e the c ode pos ition independent, the ___[ins t]________ ins truc tion will hav e to be c hanged to be ____[new]__________. (Lec tu...
View Full Document

Ask a homework question - tutors are online