[Haskell-cafe] Re: Could FFI support pass-by-value of structs?

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Jul 1 19:01:48 EDT 2009


Hello Duncan,

Thursday, July 2, 2009, 2:57:29 AM, you wrote:

> You don't need it to be the same between Windows and Unix, it just has
> to be standard on each platform, which it is. There are really only two
> ABIs in common use on x86, the System V ABI and the MS one (which apart
> from the stdcall calling convention only differs in the bitfield layout
> iirc).

you mean that on windows gcc, msvc and all other C compilers use the
same ABI for passing and packing structs?

(at least it does noting common to document you shown, it says about
SysV ABI, that may be common for all modern unicies - i don't know)


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list