[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] passing struct by value does not respect x86_64 SysV ABI (#443)
notifications at github.com
Fri Nov 8 10:44:16 UTC 2019
I've heard that Lua's FFI is wonderful. Maybe we should take a look how did they tackle this problem.
After some quick digging around, here is the code setting up the arguments:
Here are the x64 specific defines used by the setting up code:
They definitely have all the type information. They get it from parsing the C declarations.
Here is an example of the declaration part:
And the usage:
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev