[PATCH 0/6] MSVC fixes
Peter Rosin
peda@lysator.liu.se
Fri Mar 23 00:13:00 GMT 2012
Peter Rosin skrev 2012-03-23 00:25:
> It would be interesting to see if MSVC can call into a libffi
> built by GCC and vice versa, to check if the structure return
> discrepancy really is fixed. That should be possible if I did
> this right, right?
Hi again!
I have now tested with testsuite/libffi.call/cls_12byte.c.
Compiling the test with GCC and linking with a MSVC-built ffi-5.dll
works, and building it with MSVC and linking it with an import lib
for the GCC-built libffi-5.dll also works. Both executables output
the expected:
7 4 9 1 5 3: 8 9 12
res: 8 9 12
7 4 9 1 5 3: 8 9 12
res: 8 9 12
So, both libraries can handle returns of large structures for both
FFI_SYSV and FFI_MS_CDECL.
Neat, if I might say so myself!
Cheers,
Peter
More information about the Libffi-discuss
mailing list