使用newlib库
cmake里面加1
2add_compile_options(--specs=nano.specs)
add_link_options(--specs=nosys.specs --specs=nano.specs -Wl,--start-group -lc -lm -Wl,--end-group)
启用硬浮点编译
1 | #Uncomment for hardware floating point |
启用浮点打印
1 | add_link_options(-u _printf_float) |