工具链浮点支持

./mipse-linux-gnu-gcc --help

./mipse-linux-gnu-gcc --target-help | grep float

输出结果如下: -mdouble-float Allow hardware floating-point instructions to -mfp32 Use 32-bit floating-point registers -mfp64 Use 64-bit floating-point registers -mfused-madd Generate floating-point multiply-add instructions -mhard-float Allow the use of hardware floating-point ABI and -mpaired-single Use paired-single floating-point instructions -msingle-float Restrict the use of hardware floating-point -msoft-float Prevent the use of all hardware floating-point -mhard-float allow floating-point instructions -msoft-float do not allow floating-point instructions -msingle-float only allow 32-bit floating-point operations -mdouble-float allow 32-bit and 64-bit floating-point operations --[no-]construct-floats [dis]allow floating point values to be constructed

可看到工具链是否有软浮点或者硬浮点选项。

你可能感兴趣的:(工具,float)