tech-userlevel archive

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

Re: must use gcc builtin?



On Mon, Feb 27, 2012 at 02:37:11PM -0500, Mouse wrote:
> 
> For example, on some architectures there may be no difference at all in
> argument-passing machine state at point-of-call between the two calls
> 
> void foo(int, ...);
> foo(1, 7, "foo");
> foo(1, "foo", 7);

Amd64 does that for int and double, so:

  foo(1, 1, 1.0);
and
  foo(1, 1.0, 1);
generate the same code.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index