ts-7000
[Top] [All Lists]

[ts-7000] Re: floating point corruption?

To:
Subject: [ts-7000] Re: floating point corruption?
From: "charliem_1216" <>
Date: Wed, 27 Feb 2008 14:38:04 -0000
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/
 

<Prev in Thread] Current Thread [Next in Thread>
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