[ECOS] Floating Point emulation

David Vrabel dvrabel@arcom.com
Tue Feb 3 10:10:00 GMT 2004


Leandro Fanzone wrote:
> I have an application built with eCos that doesn't run in a 386 without 
> i387. A simple program that performs something as silly as "unsigned n = 
> 500 * 1.5" hangs. I added the appropriate flags to prevent gcc to 
> compile with 387 support (-msoft-float, etc.) and now I realize that I 
> lack the emulation libraries.

You need to rebuild GCC to support soft-float.  A patch similar to the
one attached does the trick.

Perhaps the guys at eCosCentric could prepare i386 toolchains with 
soft-float support in future?

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-3.3.1_i386-elf_soft-float_multilib.patch
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040203/5c446e89/attachment.ksh>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


More information about the Ecos-discuss mailing list