Floating Point Support
Wed Jan 21 05:41:00 GMT 2004
> Dietmar Ernst wrote:
> >I am using newlib-1.10.0 for an AT91M55800A (ARM7 Core), my compiler is
> >gcc-3.2.1 for Cygwin. I've some problems when performing floating point
> >operations, for example "strtod". The conversion seems to work fine, but
> suddenly it
> >jumps to label "undfl" and leaves the functions with 0x0. There's not
> >information available for this problem. Maybe it has something to do with
> >option "-msoft-float"?
> There has been no strtod problem like this that I am aware of. Can you
> give details of how you configured?
> Some possible problems could be:
> 1. You did not build gcc and newlib in the same build directory. When
> multilibs are involved,
> it is best to build gcc and newlib in the same place. When you
> specify a compile with link,
> gcc will link in the correct multilib. Otherwise, you have to
> manually specify which multilib
> to link in and if you get it wrong, undefined behavior results
> (e.g. mixing up little-endian and big-endian).
> 2. Another possibility is that you have a compiler bug. Is is
> possible for you to try a different compiler?
> If you still have problems with newlib, I suggest trying
> -- Jeff J.
Normally, the selection of multilib works fine, e.g. in case of
Configuration of GCC:
$GCC_SRC/configure --target=arm-elf --prefix=$INSTALL \
--with-local-prefix=$INSTALL --with-gnu-as --with-gnu-ld \
--with-headers=$NEWLIB_SRC/newlib/libc/include --with-newlib \
Configuration of newlib:
$NEWLIB_SRC/configure --target=arm-elf --prefix=$INSTALL --enable-multilib
+++ GMX - die erste Adresse fÃ¼r Mail, Message, More +++
Bis 31.1.: TopMail + Digicam fÃ¼r nur 29 EUR http://www.gmx.net/topmail
More information about the Newlib