-
I tested softfp and the compiler does output floating-point instructions. I have no code to test if the float argument passing works as intended, though.
It already works like that, no changes in EspruinoCompiler needed (unless it broke recently)
Also using floating point instructions work inside inline C, see my tests linked in previous post.
Include files and macros are intentionally blocked https://github.com/gfwilliams/EspruinoCompiler/blob/master/src/compile.js#L466 so you can't include math.h
I sent you the PR that allows specifically
#include <math.h>
and enables the string literals.Edit: It'd probably be good to have some other headers in there, such as cstdint.
Looks like changing from soft to softfp is exactly what we want.
Edit2: I tested softfp and the compiler does output floating-point instructions. I have no code to test if the float argument passing works as intended, though.