ts-7000
[Top] [All Lists]

[ts-7000] Re: Floating Point problems with supplied JFFS2 image

To:
Subject: [ts-7000] Re: Floating Point problems with supplied JFFS2 image
From: "dawydiuk" <>
Date: Wed, 06 Apr 2005 18:53:42 -0000



> 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/
 



<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] Re: Floating Point problems with supplied JFFS2 image, dawydiuk <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU