How Computers Work

MIPS Functions, the Stack and Recursion

18:41

Plays from YouTube. Watch on YouTube

How does mips functions, the stack and recursion work inside a computer?

Meet mips functions, the stack and recursion: a visual explanation of the operations, hardware signals and programmer-visible behavior behind a real computer.

We start with call and return, using explicitly stated rules and original diagrams.

From there we trace stack pointer, save registers, arguments and return values through concrete examples.

Then we test nested calls and stack frames against edge cases where intuition can fail.

Finally we connect the results to trace stack discipline. The big idea: understand what changes, when it changes, and why.

Explore more computer science and mathematics lessons from Closiq.