[Mono-dev] Returning structures via multiple registers

Zoltan Varga vargaz at gmail.com
Fri Jan 8 21:55:47 UTC 2016


Hi,

  amd64 does this, see the code beginning with:

/*
* The valuetype is in RAX:RDX after the call, need to be copied to
* the stack. Push the address here, so the call instruction can
* access it.
*/
in mini-amd64.c.

             Zoltan

On Fri, Jan 8, 2016 at 4:13 PM, Bill Seurer <seurer at linux.vnet.ibm.com>
wrote:

> I have added but not yet checked in support for the final bit of the ELF
> v2 ABI to the power/ppc target which is returning structures too large to
> fit in one register via multiple registers.  The code in the mini-ppc.c
> that handles the return from the function is good I think but the code at
> the call site I am not all that happy with.  It works but seems clumsy.
>
> Anyway, do any of the other targets, other than llvm that is, handle
> this?  I looked but I wasn't sure.
> --
>
> -Bill Seurer
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20160108/ffe59a03/attachment.html>


More information about the Mono-devel-list mailing list