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

MIPS Memory Layout

figure91

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
Wed Sep 20 17:20:34 ADT 2000