Mail Archives: djgpp-workers/1999/06/30/06:02:57
> On archs that use N (usually 4) regs by default (eg i860, pa-risc, most
> risc?), the convention is that the first N parameter words (not
> necessarily parameters themselves, depends on param size) are *ALWAYS*
> passed in the registers (with FP parms being sent in both int and fp
> regs), no matter what, with any additional parameters passed on the
> stack. The varargs function then has prologue code that saves the
> incoming regs on the stack. The va_args `macro' does the right thing
> for accessing the incoming params. I don't know how of even if this can
> be made to work for the i386 (though I don't see why not), but do we
> want to?
Well, this is approx what I want to do in future, but it will definitly not fit
into 2.95.x, so it might take a year or so to come. In meanntime I think
we can live happily with required prototypes for varargs stuff...
Honza
>
> Anyway, varargs stuff need not be a problem. So long as the calling
> conventions match, no prototype is truely needed.
>
> Bill
> --
> Leave others their otherness.
- Raw text -