3 ms·
Are there any good benchmarks for float vs fixed point, specially for ARM systems?
by gatane 2y ago
Are there any good benchmarks for float vs fixed point, specially for ARM systems?
- EasyMark 2y agoThat would vary wildly with the ARM chip you are talking about. I would say figure out which ARM you’re interested in and go down the rabbit hole from there.
- evoke4908 2y agoJust look at the instruction set for your particular CPU. Every CPU is different, but in most architectures I've seen, floating point operations are 2-3 times slower for the same word size. Single float adds are usually 2 or 3 CPU cycles while single-word integer adds are usually 1 cycle. Again, this is extremely dependent on the particular CPU you have. Some architectures do have single-cycle FPU operations, but it's not very common in microcontrollers as far as I can tell.