This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: floating point library problems ...


Could you have some kind of problem with the endianness of doubles? See
if you get the same problem with floats and work from there.

At least on ARM, gcc assumes doubles are big-endian (the words are in
the opposite order to the one you would expect, but within a word they
are little endian). These leads to some weird results for the unwary...


Luke Diamand

Ken DESMET wrote:
> 
> Hi all,
> 
> I have build a cross compiler to a m68k target with the newlib-1.8.1
> library.
> 
> When i compile small test programs with simple floating point functions like
> multiplications, they do work fine. More complex floating point functions
> like sqrt() and sin() do not seem to function. They simply hang/never return
> ...
> 
> Any suggestions what could be the cause of this problem ?
> 
> Greetings,
> 
> Ken

-- 
Virata http://www.virata.com
Cambridge
Tel: +44 1223 566919      Fax: +44 1223 566915

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]