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

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

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

Postby fly135 » Fri Apr 27, 2018 4:05 pm

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

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Sat Apr 28, 2018 3:59 am

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.

Who is online

Users browsing this forum: No registered users and 68 guests