4. If a byte-addressable machine with 32-bit words stores the hex value 98765432, indicate how this value would be stored on a little- endian machine and on a big-endian machine. Why does“endian-ness” matter?
On a little-endian machine, the value 98765432 would be stored in memory as follows:
Address: 0 1 2 3
---------------------------------------
Value: 32 54 76 98
On a big-endian machine, the value 98765432 would be stored in memory as follows:
Address: 0 1 2 3
---------------------------------------
Value: 98 76 54 32
Therefore, understanding and accounting for endianness is essential in ensuring proper data handling and compatibility when working with systems or protocols that may have different byte order conventions.