Why do memory and registers not allow recursion, while stack does?
<p>In lecture we talked about how parameters can be passed in assembler. We distinguished the 3 different mechanism: Memory, Register and Stack.
One characterization of those were that: Memory and Register do not support recursion in a sub program, while Stack does. </p>

<p>Why is that?</p>

<p>I guess in case of the register, caller/callee save register are neglected, thus entries of the register are constantly overwritten, even though they might be needed for later (recursion)</p>

<p>But what about memory?</p>