> I'd be very grateful if a few people could run this test
> program on their TS-7200's can get back to me.
What version of gcc are you using, when you use the crosstool binary
from the CD what errors do you see?
> Remember, it works fine under Debian. Boot from the
> JFFS2 image to see the failures. If anyone _can_ get this
> to work in that environment, _please_ do tell me all
> about your toolchain and/or any other relevant voodoo.
I did see that the atof() function is not working properly from the
onboard flash unless I compile statically. Although all other
functions worked as I expected. I used the source code you provided
minus the hex dump(and added a sin and cos function call). Below is
some more info...
I used the crosstools binary from the CD, then used the following
command to compile.
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/bin/gcc
fptest.c -o fptest -lm
--------------------------onboard flash-------------------
$ ./fptest -4.3
atof(-4.3) = 0
(int)-4.3 = -4
fabs(-4.3) = 4.3
ceilf(-4.3) = -4.000000
ceil(-4.3) = -4
exp(-4.3) = 0.0135686
sin-4.3) = 0.916166
cos(-4.3) = -0.400799
-----------------------statically linked onboard---------
atof(-4.3) = -4.3
(int)-4.3 = -4
fabs(-4.3) = 4.3
ceilf(-4.3) = -4.000000
ceil(-4.3) = -4
exp(-4.3) = 0.0135686
sin-4.3) = 0.916166
cos(-4.3) = -0.400799
------------------------debian---------------------------
atof(-4.3) = -4.3
(int)-4.3 = -4
fabs(-4.3) = 4.3
ceilf(-4.3) = -4.000000
ceil(-4.3) = -4
exp(-4.3) = 0.0135686
sin-4.3) = 0.916166
cos(-4.3) = -0.400799
//Eddie
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|