next up previous
Next: Branch Instructions Up: SAL & SPIM Previous: Example: Average Integers

MIPS Memory Layout

figure127

Memory is divided into four segments:

Text
The assembly language instructions begin at address 0x400000.
Data
Storage for variables follows the text segment. Dynamic data storage grows toward higher memory locations.
Stack
For function and procedure linkage, the bottom of the stack is at 0x7FFFFFFF and grows toward the data segment.
Reserved
Memory below the Text segment and above the stack is reserved for use by the operating system.



CS 301 Class Account
Mon Sep 13 11:15:41 ADT 1999