Why use -mfloat-abi=softfp on MODM7AE70?
Posted: Wed Mar 25, 2020 3:05 am
My particular application needs as much double-precision performance as it can get. On a Teensy 4 with -mfpu=fpv5-d16 -mfloat-abi=hard , a particular chunk of my DSP code is running at 1 MS/sec, but on the MODM7AE70 it's only doing 67 kS/s.
Admittedly the iMXRT1062 on the Teensy 4 is running at 600 MHz instead of 300, but that's still almost 8x difference at the same clock speed. I tried setting -mfloat-abi=hard in every makefile I could find and running make clean/make, but the performance is exactly the same.
In general, are there any downsides to compiling with -mfloat-abi=hard, given that no precompiled third-party libraries are being used? My understanding is that softfp versus hard should make almost no difference, but something is really hosing double-precision FP performance on the SAME70.
Admittedly the iMXRT1062 on the Teensy 4 is running at 600 MHz instead of 300, but that's still almost 8x difference at the same clock speed. I tried setting -mfloat-abi=hard in every makefile I could find and running make clean/make, but the performance is exactly the same.
In general, are there any downsides to compiling with -mfloat-abi=hard, given that no precompiled third-party libraries are being used? My understanding is that softfp versus hard should make almost no difference, but something is really hosing double-precision FP performance on the SAME70.