Hello David, Am 28.03.2012 11:27, schrieb David Chisnall: > Now for the helpful bit... > > Looking at what clang generates for things taking NSRect as the argument, the > only thing I can think of is to wonder if you forgot to add the byval > attribute on the arguments? And did you set the alignment to 8 on the > attribute? If the stack slot used for the argument has the incorrect > alignment then this would give similar results to what you see...
This is indeed extremely helpful! I did of course forget about the attributes. Think I'll add a function to the ABI info provider that generates an AttrListPtr for a Function. Maybe I can get this done tonight. But I'm a bit confused about why the alignment is supposed to be 8. I always thought the amd64 ABI mandated the stack to be 16 byte aligned on function calls (though it would of course be aligned that way for NSRect by accident…) Thanks alot! Niels
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Etoile-dev mailing list [email protected] https://mail.gna.org/listinfo/etoile-dev
