3 ms·
Correct. If you think about it, the program could prompt the user for the address to jump to, and then the program could go there. In fact, that's exactly what
by AndyKelley 13y ago
Correct. If you think about it, the program could prompt the user for the address to jump to, and then the program could go there. In fact, that's exactly what some games (accidentally) do: http://tasvideos.org/2341M.html http://tasvideos.org/2341M.html
It is impossible to solve this statically. This is why dynamic recompilation is more practical.
- lucian1900 13y agoSure. It could be argued that "general case" is a bit more restricted than that for actual useful software in the wild, but that would still break any program with a JIT. Sadly, emulation seems to be the way to go.
- BHSPitMonkey 13y agoThanks for that link; That hack (and the accompanying video) has just become perhaps my favorite thing, ever. Also, it led me to this similarly incredible hack as well: http://www.youtube.com/watch?v=D3EvpRHL_vk http://www.youtube.com/watch?v=D3EvpRHL_vk