Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - when a source file is compiled by watcom c/c++ with one of the "fpi" or http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
When a source file is compiled by Watcom C/C++ with one of the "fpi" or
"fpi87" options, all floating-point arguments are passed on the 80x86 stack.
 The rules for passing arguments are as follows.

 1. If the argument is not floating-point, use the procedure described
    earlier in this chapter.

 2. If the argument is floating-point, it is assigned a position on the
    80x86 stack.

+--------------------------------------------------------------------------+
|   Note:  When compiling using the "fpi" or "fpi87" options, the method   |
| used for passing floating-point arguments in the stack-based calling     |
| convention is identical to the method used in the register-based calling |
| convention.  However, when compiling using the "fpi" or "fpi87" options, |
| the method used for returning floating-point values in the stack-based   |
| calling convention is different from the method used in the              |
| register-based calling convention.  The register-based calling           |
| convention returns floating-point values in ST(0), whereas the           |
| stack-based calling convention returns floating-point values in EDX and  |
| EAX.                                                                     |
+--------------------------------------------------------------------------+

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson