Hi Heinrich -
--- In Heinrich du Toit <> wrote:
>
> Hi
>
> I've compiled a program that does some floating point stuff.
> It also communicates with my linux host PC via network.
>
> I've used the ts7800 EABI compiler cross-tool. 2005q3
> Everything is linked statically
>
> I've established that network communication is not the problem.
>
>
> It seem that floating point is corrupt.
>
> When I send from the ARM to the host PC the number 1.
> I get back 5.29981e-315 :-/
Then how can you rule out network communication?
>
> Also it seems maths on the ARM is completely wrong.
> This is sort off a big program so I would like some help rather than
> recompiling the thing 20 times which would take 2 days before I figure
> it out.
It would help both you and other readers on this list then, if you
could find (and post) a short example code that shows the problem.
>
> Could this be because I have no -mcpu=arm9 option ?
> Or maybe it has something to do with linking with -lm under static
linking?
> The compiler did not complain about that.
Just to be clear, you are using EABI userspace? Which kernel? Are
you sure your program is compiled as EABI? The codesourcery-2005-Q3
toolchain uses a depreciated method (userspace glibc shims) to run
old-abi binaries. The 2006Q1 release uses the eabi linux kernel
interface.
>
> Any ideas where I should look for the problem?
> I'm pretty sure the code is about right because the program compiles
> fine on x86 and it has been tested on other ARM's by other people. (not
> me though)
>
> thanks
>
A test case, and the command used to compile it, would help.
Regards, ......... Charlie
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|