Re:Building the fastest Lua interpreter.. automatically
by chc4 on Tuesday November 22, 2022 @10:10PM
(#33714687)
Have you read the Copy-and-patch compilation paper? It seems broadly similar to what you're describing, and Deegen. They use GHC's calling convention for it's snippets which has only caller-saved registers and all arguments passed in registers in order to optimize stitching the snippets together (via JIT templating in it, but with tailcalls in your case would probably also be the same design space).
[ Parent
| on HN ]
Re:Building the fastest Lua interpreter.. automatically
by sillycross on Tuesday November 22, 2022 @10:13PM
(#33714700)
The copy-and-patch paper is also written by me. Deegen a follow-up work of copy-and-patch, and it will use copy-and-patch as a tool to build its JIT tiers in the future.