What is "__fltused" symbol?

hank barta hb at vpnet.UUCP
Thu Feb 15 19:00:13 AEST 1990


Could it mean "floating point used?" 

Some compilers generate these symbols to cause portions
of libraries to be loaded when they are otherwise not referenced.
For example, the compiler could use a floating point emulator
(software) and then compile instructions for the 80387. Then
when the code runs on a machine w/o the 80387, the instructions
cause a trap. The trap handler passes control to the floating point
emulator which then does the computation in software. But the
trap operation does not require an address the way a subroutine call
would, so the compiler puts an unresolved (an otherwise do nothing)
reference in the object which is resolved by the particular
library module.

Disclaimer: The above is an educated guess. Perhaps there is another
reason for this symbol.

						Hank



More information about the Comp.unix.i386 mailing list