passing float to an external function

Torsten Kühnel
Sun Nov 5 14:44:00 GMT 2006


i have problems passing a simple float value to an external C function.

Passing to a function in the same object file gives the expected

But passing it to a function in another object file, which is linked
into the executable, it arrives not as it is expected. (at least by me)

simple sample code-lines, with generated asm listing and some comments:

Thank you for any hints. 

More information about the Gcc-help mailing list