Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
codeflo
· 2y ago · 0 comments
How can a reusable function have a fixed return address?
Comments
[–]
tsimionescu
2y ago
This is a good point that I hadn't considered - these are indirect jumps, and the return instruction has special handling from the processor to compute the address specifically, which a jump to a recover address can't have.
[–]
eptcyka
2y ago
Because of the stack? It is not fixed, but once you a function is called, the CPU must know where it was called from.