Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 3
    read up on threaded code, an implementation technique mainly used by Forth compilers to produce extra-small executables. Commented Jan 13, 2016 at 19:54
  • @amon: Thanks, I was looking for something like that! There is even a direct connection from the hacking techniques (ROP) that inspired this question back to the idea of threaded code. Commented Jan 13, 2016 at 23:44
  • Now there is Copy and Patch (PDF) which implements this idea! Commented May 3, 2023 at 1:39
  • While this is cool, it still needs to write to executable memory, failing the framework of the question. Commented May 3, 2023 at 6:53
  • Ah, I missed that. Then there is TCTI, which is used in QEMU on restricted platforms: twitter.com/ktemkin/status/1376019469730934784 / github.com/tctiSH/qemu Commented May 3, 2023 at 15:38