next up previous
Next: Addressing Modes Up: Description of the MIPS Previous: CPU Registers

Byte Order

Processors can number the bytes within a word to make the byte with the lowest number either the leftmost or rightmost one. The convention used by a machine is its byte order. MIPS processors can operate with either big-endian byte order:

tabular366

or little-endian byte order:

tabular375

SPIM operates with both byte orders. SPIM's byte order is determined by the byte order of the underlying hardware running the simulator. On a DECstation 3100, SPIM is little-endian, while on a HP Bobcat, Sun 4 or PC/RT, SPIM is big-endian.



Antony Hosking
Fri Apr 12 10:48:03 EST 1996