Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Binding C libraries which use variable arguments (stdarg.h)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Florian Weimer <fw@d...>
Subject: Re: [Caml-list] Binding C libraries which use variable arguments (stdarg.h)
* Adrien:

> It turned out it worked on linux x86_32, linux x86_64, netbsd sparc64
> with 32-bit userland, debian's kfreebsd amd64 and ppc32. There's
> windows which I haven't checked yet though.

x86_64 has different calling conventions for varargs and non-varargs
functions.  If it works for you, it's only by accident (e.g. because
you aren't passing floating-point arguments).