[arm-gnu] Regarding Double Data Type Support on Cortex M4

Carlos O'Donell carlos_odonell at mentor.com
Sat Jun 2 02:32:05 UTC 2012


On 6/1/2012 6:10 PM, Freddie Chopin wrote:
> W dniu 2012-06-01 21:11, Carlos O'Donell pisze:
>> Sourcery CodeBench Lite for ARM EABI does support compiling application code for the Cortex-M4F.
>>
>> The FPU on the Cortex-M4F is not a full VFP so you need to pass:
>>
>> `-mfpu=fpv4-sp-d16 -mfloat-abi=softfp`
> 
> CodeSourcery supports generating code for this chip, but it does not support the FPU... With linaro you can use:
> 
> -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffast-math
> 
> Guess which is faster (;

The best benchmark is your own application. Please don't guess :-)

Please also ensure that -ffast-math is exactly what you need since it deviates from IEEE 754.

Cheers,
Carlos.
-- 
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos_odonell at mentor.com
carlos at codesourcery.com
+1 (613) 963 1026



More information about the arm-gnu mailing list