Watch the stack pointer
Follow changes to $sp and inspect the words stored in memory. Relate each store and load to the corresponding instruction.
Open. Run. Understand.
See how MIPS programs save values, call functions and return. Combine the introductory stack and recursion examples with step, backstep and the Stack Visualizer.
Free and open source · Local work without an account
Follow changes to $sp and inspect the words stored in memory. Relate each store and load to the corresponding instruction.
Watch $ra during a function call. Step through the code that preserves registers and restores the caller's state.
Open the recursive factorial example. In Tools, open Stack Visualizer to inspect the stack while stepping through nested calls.