Current-Users archive

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

Re: Build break - port amd64 - libcurses tests

On Mon, Apr 11, 2011 at 02:47:22PM +1000, matthew green wrote:
> something like this might work?  i'm still getting to building it.

I don't think it does ...
Although i386 passes all args on stack - so the va stuff just
parses a list of pointers/integers - and such a list can be
generated by other code, this isn't true of many other architectures.

amd64, for example, always passes the first 6 integer/pointer args
in specific registers (and the first few fp args in others).
So the va_arg() code is non-trivial and has to know which register
or stack location to return next for the argument type requested.


David Laight:

Home | Main Index | Thread Index | Old Index