[erlang-questions] OTP float error on ARM.

WS Dao chn.dao77@REDACTED
Wed Oct 15 10:46:31 CEST 2008


I cross-compiled OTP R12B4 for my ARM9 platform (S3C2410, kernel 2.4.18)
When I run erl on arm, float error occurs:
# ./erl
Eshell V5.6.4  (abort with ^G)
1> 3+5.
8
2> 3.0.
0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005307579804
3> 3.0+4.0.
0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000531405562
4>

My toolchain is gcc 3.4.5.  I'd wrote a c test program and cross-compile it,
no float problems found.

Any suggestion?


-dao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081015/4de5cf3e/attachment.htm>


More information about the erlang-questions mailing list