Danny Backx wrote:

> dannypc: {79} arm-wince-cegcc-gcc -mfloat-abi=hard -mfpu=fpa float.c -o
> float.exe -lmmtimer
> Info: resolving _CRT_MT by linking to __imp__CRT_MT (auto-import)
> 
> The executable from the last compile only prints one message. I guess
> I've created an executable that works but not on my system, the
> application probably dies when trying to execute the hardware floating
> point instruction.
> 

Probably.  You've selected an FPA floating point unit, that your
unit probably doesn't have.
Read -mfloat-abi=hard + -mfpu=fpa as I want my floats to be stored/
passed around in a way that assumes that an FPA unit is always available.

FPA expects floats encoded in a different layout from the VFP
fpu.  FPA always expects big endian, while VFP uses the machine's
native order.  To the best of my knowledge, Windows CE only supports
little endian ARMs.  If the VFP tests printed the correct values, then it
means that you should use the VFP ABI, even if your unit
doesn't have a real VFP fpu (I don't know it it does or not).  It would be
interesting to know what is the float ABI Windows CE
expects on FPA machines.  I would find it surprising if it
wasn't something like soft-vfp, because if such Windows CE devices
expect floats to be passed around on FPA registers, then they are
not ABI compatible with the other Windows CE FPU devices.   If I
remember correctly, it is not possible with current gcc to select
an soft-vfp ABI (floats in little endian order) and -mfpu=fpa at the
same time.


> BTW, does anyone know how to trap events like these and get information
> on what went wrong ?
> 
> Inspection of the executable with objdump reveals that the application
> doesn't grab the software floating point functions from cegcc.dll . As
> expected.
> 


You should be seeing real FPA instructions.

Cheers,
Pedro Alves



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Cegcc-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to