Bài tiếng anh nên mình mạn phép đăng lên đây, bạn nào biết giải giúp mình .
Bài 1:
The following problems explore translating from C to MIPS. Assume that the variables f, g, h, i, and j
are given and could be considered 32-bit integers as declared in a C program.
a.
f = g + h + i + j
b.
f = g + ( h + 5)
For the C statements above, what is the corresponding MIPS assembly code? Use a minimal number
of MIPS assembly instructions.
For the C statements above, how many MIPS assembly instructions are needed to perform the C
statement?
If the variables f, g, h, i, and j have values 1, 2, 3, 4, and 5, respectively, what is the end value of f?
Bài 1:
The following problems explore translating from C to MIPS. Assume that the variables f, g, h, i, and j
are given and could be considered 32-bit integers as declared in a C program.
a.
f = g + h + i + j
b.
f = g + ( h + 5)
For the C statements above, what is the corresponding MIPS assembly code? Use a minimal number
of MIPS assembly instructions.
For the C statements above, how many MIPS assembly instructions are needed to perform the C
statement?
If the variables f, g, h, i, and j have values 1, 2, 3, 4, and 5, respectively, what is the end value of f?
Comment