[prev] 25 [next]

MIPS memory layout

MIPS programs assume the following memory layout

Region Address Notes
text 0x00400000  contains only instructions; read-only; cannot expand
data 0x10000000  data objects; readable/writeable; can be expanded
stack 0x7fffefff  grows from that address; readable/writeable
k_text 0x80000000  kernel code; read-only; only accessible kernel mode
k_data 0x90000000  kernel data; read/write; only accessible kernel mode
Note: there is no heap like there is in C, but the data segment can expand.