How the string "Hello" fits into memory

I am new to mips and I read some stuff about Big endian and little endian. I am wondering how the string "Hello" fits into memory in the mips processor?

+3


source to share


1 answer


The large ending character, the most significant byte is placed at the lowest memory address, and the least significant byte is placed at the highest memory address.

The little tip is just the opposite.



"Hello" is 6 bytes including zero, here is "Hello" in hex 0x48 65 6C 6C 6F 21 00

, and it is organized like every two characters is one byte, so it will be put into memory with the most significant byte also 0x48

in the smallest memory address in MIPS.

+2


source







All Articles