Displaying 3 results from an estimated 3 matches for "retpc".
Did you mean:
retpt
2019 Jul 21
2
Altering the return address , for a function with multiple return paths
...n-address from the stack, then jump 2 bytes later (which would
skip over either a nop or a short jmp at original target location). Which
one it used depended upon whether the function was doing a multi-valued
return (in which case it used ret) or a single-valued return (in which case
it did the jmp retpc+2).
While this seems like a clever and efficient hack, it actually has an
absolutely awful effect on performance, due to the unpaired call vs return,
and the unexpected return address.
SBCL stopped doing this in 2006, a decade later than it should've -- the
Pentium1 MMX from 1997 already had...
2019 Jul 24
2
Altering the return address , for a function with multiple return paths
...> skip over either a nop or a short jmp at original target
> location). Which
> one it used depended upon whether the function was doing a
> multi-valued
> return (in which case it used ret) or a single-valued return (in
> which case
> it did the jmp retpc+2).
>
> While this seems like a clever and efficient hack, it actually has an
> absolutely awful effect on performance, due to the unpaired call
> vs return,
> and the unexpected return address.
>
> SBCL stopped doing this in 2006, a decade later than it sho...
2019 Jul 21
4
Altering the return address , for a function with multiple return paths
Playing around with calling conventions naked functions and
epilogue/prologue...
Is it possible/expressible/feasible to alter the return address the
function will return to?
For example, when a function may return an Int8 or a Float64, depending on
some external state
(user, or random variable), instead of checking the returned type in the
calling function, is it possible
to pass 2 potential