tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: xdrproc_t prototype
On Wed, Aug 24, 2011 at 04:28:10PM +0200, Martin Husemann wrote:
> On Wed, Aug 24, 2011 at 10:21:31AM -0400, Mouse wrote:
> > It certainly can work in the sense of "the code runs and does what is
> > intended". However, David is right in that it will be depending on
> > something the language does not promise and thus is liable to break on
> > some of our ports - or on the next compiler release for this one
> > (whichever "this one" is).
>
> Yeah, "can not work" was overworded. But:
> We have actually seen it break, IIRC, in similar context (on amd64?)
I haven't looked at this code in detail, but since amd64 passes the first
6? int/long/ptr in the same registers and uses the same convention
for varargs you probably get away with it.
OTOH, for example, the starcore DSP uses different registers for
int and ptr (for the first 2 args) but stacks everything for
varargs.
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index