Stanford CS107 Lecture 19: Understanding x86-64 Function Calls and Calling Conventions
CS107 Lecture 19 traces %rsp, push/pop, call/ret, parameters, return values, stack locals, and caller/callee register discipline to build the ABI contract that preserves data and control across functions.