Both versions were tested on
- build target
- The rust port uses the Rust
libmcrate to call math functions.
I think the performance gap is happening because my Rust program is not properly using the FPU.
Is there a config option equivalent to
-mfloat-abi=hard in Rust?? Or is this something that needs to be implemented in the compiler?
- stm32cubeide provides 3 config options for floating point calculations as below
According to this comment on GitHub issue, it seems that at least FPU is enabled by default..
Thank you for checking out this post