I’ve shown you how to build a 32-bit adder, and the design I…
I’ve shown you how to build a 32-bit adder, and the design I’ve shown you certainly gives the right answer. But while it works, is not fast enough for modern processors. What’s wrong with it? (We haven’t studied how to fix this, yet.)
Read DetailsIn this problem, caller() calls target(). When this problem…
In this problem, caller() calls target(). When this problem begins, caller() is using (and wants to preserve) the registers $t1, $t2, $t4, $s2, $s6, $s7. target() takes 3 parameters. It will need to save the second and third to the stack. target() will be using the following registers somewhere in its code: $t0, $t1, $s1, $s3. (There are 3 questions about these functions. They will be scattered across the exam because D2L randomizes the order – I apologize!) The standard stack frame is made up of 6 words. Once target() is running its code, what will those 6 words contain? Write your answers below, one per line. The first line must be the top of the stack, and the last line must be the bottom of the stack. On each line, give the name of a register which was saved there by target(), or write “unchanged” if target() had no reason to write to that word.
Read Details