Re:Writing a self-modifying x86 factorial program
by saagarjha on Wednesday December 15, 2021 @08:43AM
(#29565776)
Linux does this, actually. It's called "static calls", and it saves on an indirect branch by directly overwriting jmp instructions to point elsewhere: https://blog.yossarian.net/2020/12/16/Static-calls-in-Linux-.... As others have mentioned, doing this repeatedly has performance implications.
[ Parent
| on HN ]
There are no comments on this comment yet.