Hi All,
I am developing an os in C for based on x86 arch. I have done my
booting code and switch to PM mode. Once the control comes to kernel
when I try to declare float or signed int with negative value and then
use compare statements it's giving wrong results. Some times it skips
the comparison part itself.
Some body pass on some clue to resolve this issue...
Tx,
Sampath S
Regarding Negative point & floating point comparisions
You can init the FPU whenever you please. But if negative signed integers are giving you wrong results, then there's something more wrong than just uninitialized floating point unit, because integers are integers whether they are signed or not, and should work correctly with or without an FPU installed (ofcourse anything post-386 always has FPU but still).
Could you give an example where signed integer comparison gives you wrong results?
Could you give an example where signed integer comparison gives you wrong results?
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.