Right after when a CPU fetches and executes the following ja…

Right after when a CPU fetches and executes the following jal instruction at memory address 0x00400114, what values will be set to MIPS PC and $31 registers? instructionaddress        Instructions ———– ———— addu $4, $0, $2           jal 0x00400094 lui $1, 4097   ori $4, $1, 81     addu $5, $0, $2

When the following program (written in C) being compiled and…

When the following program (written in C) being compiled and loaded into memory for execution, where local variables “i” and “temp”  will be allocated in the process address space? int nums = {1, 2, 3, 4, 5, 6, 7, 8. 9, 10};void main() {   int i, temp;   int arrays;   i = 0;LOOP:   if (i < 10)      goto L1;   else      goto L2;L1:   temp = nums;   arrays = temp;   i++; goto LOOP;L2:   foo(arrays);   return;}