3 ms·
On Itanium, this is part of the standard calling convention - the call opcode stores the return address in a register rather than in memory. It's up to the cal
by caf 11y ago
On Itanium, this is part of the standard calling convention - the call opcode stores the return address in a register rather than in memory. It's up to the callee to save and restore it if it's going to call another function itself.
- repiret 11y agoI think most architectures are like that.
- caf 11y agoMore modern architectures tend to be. Apart from Itanium, other examples of architectures that store the return address in a register are Alpha, PowerPC and ARM. Architectures that store the return address directly on the stack include 6502, z80, m68k and x86.