Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

questions are from computer architecture from (ompuder Archi te crune Please sho

ID: 3888846 • Letter: Q

Question

questions are from computer architecture

from (ompuder Archi te crune Please show work/gveeasorng on how gougot the answa For the lollouing mPs assemly nstuchons belon, whst is C stahemertd add a Fon the allouwnq C statement, whot s the corres MIPS assem bly odeAgume thod the variahes i ondi Jare basd addres otthe arrays A and 8 are in reqixte Assume Hhot the element o e a Aond g ane 4-byte words. 3 Show houw the value 0x99abedek wouwld be arronged ocine in memory o a little-endion nd bi endien m Assume ihe data is stored ad address o sw -$+1-32(4t2 T-Rinstruchon? (Short explain/masan) 4. MIRS instruction um B this w this R

Explanation / Answer

1. The MIPS assembly instruction add simply means to add numbers. The first variable is the result of adding the two preceding variables. From the first instruction, we can gather that f=g+h. The second statement translates into C as being f=i+f. The second statement is using the value of f from the first instruction, so the complete statement would be f=i+(g+h), since f from the first instruction is equal to g+h.