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]

Re: Also: problem with return value in ffi_call on PPC64.


On 28/05/17 02:36, Kaz Kylheku (libffi) wrote:
> Are users supposed to assume that the return value has been widened to a 
> register-wide (8 byte) value regardless of its declared FFI type?

Yes.

> Why doesn't that convention apply to the arguments, then? When dup is 
> being called above, the int value is being written at the bottom of the 
> argument buffer, not displaced by four bytes.

It's more of a historical accident than anything planned.  But it's not
important enough to break backwards compatibility.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


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