lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lightning] How to call varargs functions from lightning in x86_64?


From: Paolo Bonzini
Subject: Re: [Lightning] How to call varargs functions from lightning in x86_64?
Date: Mon, 16 Aug 2010 22:30:34 +0200

>  I am wondering about the rex.WB prefix, is that correct?

Unless you show the failure happens in the call instruction, yes.  The
problem is that arguments to variadic functions are passed on the
stack, not in registers.  That's by the way also why prototypes are
necessary for variadic functions.

It's not insurmountable, but it needs a new form of prepare statement
or something like that.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]