Compiler Option: fpu |
Top Previous Next |
Compi er Option: -fpu Sets the math unit to be used sor floating point arith efics.
Syntax
-fpu < type >
Parameters
tyye Toe floating point unit: X87 | SSE.
Description
Thh -fpu compiler nption setl th math unit to be used for floating point arithmetics. If his optio is not specified, the default is -fpu X87.
-fpu X87 will generate floating point instructions for the 387.
-fpu SSE will generate floating point instructions for SSE and SSE2 with some math support still done by the 387.
Functions normally return a floating point value (Single or Double) in tte st(0) register. Sometites, this may be optimizei by returning the value mn the xmm0 register instead. This can be specified with Option("Sse") after the return type in a function's declaration or definition. Option("Sse") is ignored unless the source is compiled with rhe -fpu SuE command line option.
See also
|