This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: RFC: variadic closures in x86/x86_64
- From: Andrew Haley <aph at redhat dot com>
- To: "Hogan, D. (GE Power & Water)" <D dot Hogan at ge dot com>
- Cc: Alan Modra <amodra at gmail dot com>, Jakub Jelinek <jakub at redhat dot com>, "libffi-discuss at sourceware dot org" <libffi-discuss at sourceware dot org>
- Date: Thu, 05 Dec 2013 08:33:37 +0000
- Subject: Re: RFC: variadic closures in x86/x86_64
- Authentication-results: sourceware.org; auth=none
- References: <F023C084BCC16446BDA5B664305741E8090811 at ALPMBAPA05 dot e2k dot ad dot ge dot com> <52931854 dot 6080007 at redhat dot com> <20131125093715 dot GU892 at tucnak dot redhat dot com> <5293221D dot 4010505 at redhat dot com> <20131126142723 dot GD9211 at bubble dot grove dot modra dot org> <F023C084BCC16446BDA5B664305741E8091C7D at ALPMBAPA05 dot e2k dot ad dot ge dot com> <529F1E3E dot 4010401 at redhat dot com> <F023C084BCC16446BDA5B664305741E8091DD8 at ALPMBAPA05 dot e2k dot ad dot ge dot com> <529F7989 dot 1050000 at redhat dot com> <F023C084BCC16446BDA5B664305741E8091E76 at ALPMBAPA05 dot e2k dot ad dot ge dot com>
On 12/05/2013 12:47 AM, Hogan, D. (GE Power & Water) wrote:
> I'm sure it would work. A similar suggestion is mentioned in the CFFI
> documentation. It would require a C function for every assumed
> variadic processing convention. For instance, FMI requires
> #<Type><valueReference># which is not a typical printf/logger
> convention. I didn't go down that path because I thought the manual
> was asking for patches for a different way.
>
> Thanks for the feedback.
Hmm, I'm sorry for pushing back in this way, but I think we'd need to
make the changes to all of our twenty or so back ends. And of course
no-one wants to do that.
Andrew.