Hi,
We are using Linux as an embedded kernel on a 486 processor without any
FPU. What we are noticing is that floating point operations are 5-10 times
slower than the corresponding operation on Windows CE.
Is this due to the fact that very floating point instruction is trapped to
the kernel? How expensive is the trapping?
Why not write a user level library for doing math emulation and modify gcc
to generate code to keep prevent these floating point exceptions? For
example, Microsoft compiler generates functions like fdiv, fxxx, etc...
instead of generating actual floating point instructions. These functions
are user level library functions and keep track of the fact a floating
point exception occurred. If it did, these functions jump into emulation
code directly.
Is there an easy solution without attempting to modify gcc?
Thanks
--
Pawan Singh
[EMAIL PROTECTED]
650-404-0213
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.