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

Eljay Love-Jensen eljay@adobe.com
Fri Feb 6 13:41:00 GMT 2004


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 



More information about the Gcc-help mailing list