[LLVMdev] Proposing a new 'alloca' parameter attribute to implement the Microsoft C++ ABI

Duncan Sands baldrick at free.fr
Mon Jul 29 06:40:47 PDT 2013


On 29/07/13 15:30, Anton Korobeynikov wrote:
>>> object in place on the stack or at least call its copy constructor.
>>
>>
>> what does GCC do?
> Nothing. It does not support MSVC ABI.

Maybe we shouldn't either :)  So the ABI requires the struct to be pushed on the
stack by the caller along with the other parameters, and what's more it requires
the caller to execute some code on that copy, in place on the stack, before
performing the call.  Is that right?

Ciao, Duncan.



More information about the llvm-dev mailing list