Re: where does gcc generate float param passing code before function call?

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

 



Hi add,

What we have here is "GIGO".  Garbage in, garbage out.

Try this instead:
- - - - - - - - - - - - - - - -
double foo( double i )
{
        return i;
}
int main()
{
        double i=1.0;
        foo(i);
        return 0;
}
- - - - - - - - - - - - - - - -

Note all the differences, there are quite a few.  Order is important.  Details are important.

HTH,
--Eljay 


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux