<div dir="ltr">On 27 April 2013 08:39, Stepan Dyatkovskiy <span dir="ltr"><<a href="mailto:stpworld@narod.ru" target="_blank">stpworld@narod.ru</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">* VarArg function uses the same regulations for parameter passing as regular ones (5.5 Parameters Passing).<br>
</blockquote><div><br></div><div></div></div></div><div class="gmail_extra" style>You're absolutely right. </div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>Last time I did this I was making AAPCS VFP work, making sure parameters would gon into GPRs, not VFP ones for variadic functions. Somehow I got confused and thought that they always went on the stack, not GPRs. Ignore me.</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>However, you don't have to waste the registers that are not used because of alignment. You can still use them as scratch registers, since they'll never be used for argument passing anyway.</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>cheers,</div><div class="gmail_extra" style>--renato</div></div>