Y
Hacker News
new
|
ask
|
show
|
jobs
by
codeflo
592 days ago
How can a reusable function have a fixed return address?
2 comments
tsimionescu
592 days 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.
link
eptcyka
592 days 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.
link