How the string "Hello" fits into memory
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 to share