This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why is ROM consumption in double is bigger than single-precision floating-point?

Hello everyone,

I'm analyzing two codes exactly the same on a ARM Cortex-M4F (Armv7E-M).
The only difference is that one uses double precision floating-point, and the another single one.
I realized that the double precision one consumes more ROM memory than the single.

My guess is that since Floating-Point Unit (FPU) of ARM Cortex-M4F is natively made for 32bits floating-points, when the code uses 64bits, the program generates more assembly code to overcome this limitation somehow.


Anyone knows why?
Can anyone provide any source or material that validate your statement?

Respectfully,
Tiago

0