This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFC: variadic closures in x86/x86_64


Hi,

I'm requesting feedback on an implementation of variadic closures in
libffi.  It currently supports x86 and x86_64.  This change allows for
FMI logging callbacks through JNA in the JFMI[1] and Ptolemy II[2]
projects.  The libffi changes are in a github branch[3].  I'm waiting
to finalize these changes before pushing the JNA branch.

It looks like it will be easy to add support for platforms such as
SPARC.  Are there any platforms that support variadic arguments but
would not support variadic closures in this manner?

I tested this on x86_64 Linux and x86 Windows.  None of the dejagnu
tests failed after this change.  I could use help testing it on other
platforms.  Thanks to Christopher Brooks from UC Berkeley for feedback
and testing on x86_64 Darwin.


Regards,
Doug

[1] http://ptolemy.eecs.berkeley.edu/java/jfmi
[2] http://ptolemy.eecs.berkeley.edu/ptolemyII
[3] https://github.com/dhogan1/libffi/tree/variadic_closures


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]