sprintf causes a procesoor crash when I use %f

Koen Teetaert koen.teetaert@scarlet.be
Fri Aug 11 17:06:00 GMT 2006


Hi,

Thanks for the answers. I already made a cross compiler without this
'"--enable-newlib-hw-fp', but my sprintf wasn't work fine, it has the same
problem. All my other floating functions where working fine...
 
Gr,

Koen

-----Oorspronkelijk bericht-----
Van: crossgcc-owner@sourceware.org [mailto:crossgcc-owner@sourceware.org]
Namens Dave Korn
Verzonden: vrijdag 11 augustus 2006 18:51
Aan: 'Dave Korn'; 'Peter Barada'
CC: koen.teetaert@scarlet.be; crossgcc@sourceware.org
Onderwerp: RE: sprintf causes a procesoor crash when I use %f

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!


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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


__________ NOD32 1.1703 (20060811) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com



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



More information about the crossgcc mailing list