Why is a calling convention necessary when one function calls another?
A calling convention defines how arguments and return values are passed, which registers the callee must preserve, and how stack-related obligations are handled. Code that violates it can corrupt the ...