vchuravy wrote: As a note GCC v14 has implemented heap based trampolines (using x18 on Linux and x16 on Apple). https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/Code-Gen-Options.html#index-ftrampoline-impl https://github.com/llvm/llvm-project/pull/70267