Just a historical FYI. I did a version of the thunk based calls for
Sdl Perl in around 2k2 and it works ok. The real issue is not the
several C ABI variants that need to be supported (6 main ones with
slight variants) the problem is Making some of the calls "perlly".
So if we are ambitious we could do a thunk based approach that
supports both perl5 and perl6. This past month on another project I
have written a simplified JIT that can do x86-64 unix C abi calls (it
is written in straight perl) and it can be modified to support win64
easily too.
Let me know if people are in favor of this route, cause if so I'll
release that code under lgpl3.
Dave