Question: Consider the following code: lbu $t 0 , 0 ( $t 1 ) sw $t 0 , 0 ( $t 2 ) Assume that the

Consider the following code:
lbu $t0,0($t1)
sw $t0,0($t2)
Assume that the register $t1 contains the address 0x10000000 and the data at address is 0x11223344.
(a)What value is stored in 0x10000004 on a big-endian machine?
0x10000000: 11
0x10000001: 22
0x10000002: 33
0x10000003: 44
On a big-endian machine, the value stored at 0x10000004 will be 0x00000011
(b)What value is stored in 0x10000004 on a little-endian machine?
0x10000000: 44
0x10000001: 33
0x10000002: 22
0x10000003: 11
On a little-endian machine, the value stored at 0x10000004 will be 0x00000044

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!