sprintf causes a procesoor crash when I use %f

Dave Korn dave.korn@artimi.com
Fri Aug 11 16:51:00 GMT 2006

On 11 August 2006 17:34, Dave Korn wrote:

> On 11 August 2006 17:29, Peter Barada wrote:
>>>  Does the m5307 have an FPU?
>> No, the 5307 does *not* have an FPU.
>>>  Did you compile newlib using software FP emulation, or is it trying to
>>> invoke non-existent FPU opcodes?
>> Newlib should have built itself with multi-libs for each of the
>> variants that the compiler supports.
>   No, check the OP's post: he didn't build it in-tree, but by
> hand-configuring and making it.

  And in fact:

> tar xzfv newlib-1.13.0.tar.gz
> mkdir build-newlib
> cd build-newlib
> ../newlib-1.13.0/configure --target=$TARGET --prefix=$PREFIX
> -enable-newlib-hw-fp
> make all
> make install

  Koen, I /really/ don't think you want to use "--enable-newlib-hw-fp" on a
CPU that doesn't have any hardware FP!

Can't think of a witty .sigline today....

For unsubscribe information see http://sourceware.org/lists.html#faq

More information about the crossgcc mailing list