Page 1 of 1

Can I disable the FPU and do single precision floating point?

Posted: Fri Apr 27, 2018 4:05 pm
by fly135
Asking because somebody at the company claims that software floating point is faster and I'm like... "how would you know?"

So I'd like to put it to rest. Although a web search seems to indicate the ESP32 floating point is pretty slow.

John A

Re: Can I disable the FPU and do single precision floating point?

Posted: Sat Apr 28, 2018 3:59 am
by ESP_Sprite
I don't think there's an easy way to do it, as the Xtensa bits of gcc seem to be mostly configured at compile time. You'd have to disable the FPU in the gcc overlay file, then recompile the entirety of gcc from scratch.