public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* libffi stdcall closures
@ 2007-11-08 16:09 Timothy Wall
  2007-11-08 19:11 ` Tom Tromey
  0 siblings, 1 reply; 6+ messages in thread
From: Timothy Wall @ 2007-11-08 16:09 UTC (permalink / raw)
  To: gcc-patches; +Cc: twall

I'm working on a patch for win32/x86 stdcall closures to support JNA  
(http://jna.dev.java.net), a ctypes-like library for Java.  I'm  
working off of a libffi snapshot from the gcc trunk.

I've got the closure code working now, and I need some pointers on  
adding a win32-only stdcall callback test to the testsuite (or a  
general one if stdcall is supported elsewhere).

I'm running the testsuite under cygwin, which works except for about  
4 failures unrelated to what I'm working on.

Oddly enough, some stdcall closures would work while others would not  
(seems to be tied to the caller environment as opposed to the number  
of closure arguments).   Probably has to do with whether the caller  
is maintaining a frame pointer or whether it relies entirely on the  
stack pointer.

Timothy Wall
http://abbot.sf.net

PS Please CC me explicitly; I'm not subscribed to gcc-patches.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-11-13 22:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-08 16:09 libffi stdcall closures Timothy Wall
2007-11-08 19:11 ` Tom Tromey
2007-11-08 22:19   ` Timothy Wall
2007-11-09  1:07   ` Timothy Wall
2007-11-13 23:28     ` Tom Tromey
2007-11-13 23:32       ` Timothy Wall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).