Re: Preliminary libffi progress
- Posted by ghaberek (admin) Oct 01, 2022
- 1273 views
petelomax said...
Another one to consider is libcurl's CURLOPT_XFERINFOFUNCTION callback, in the end I had to define completely separate ones for 32 and 64 bit code - libcurl always puts 4 int64s on the stack, but since there is simply no way to tell the legacy call_back() any different, it pulls 32 bits per arg, so the only thing that can currently be done is to stitch together 8 int32s back into 4 int64s when runnning on 32 bit.
Yep. Being able to specify the incoming types for callbacks should help this significantly. Even 32-bit systems support 64-bit types so we can't assume everything is pointer-sized.
-Greg