美文网首页
rust项目优化

rust项目优化

作者: 多啦梦_1adc | 来源:发表于2019-04-10 17:14 被阅读0次

编辑Cargo.toml添加:
[profile.release]
codegen-units = 1 # 更好的优化
debug = true
lto = true # 更好的优化

根目录新建并编辑memory.x,添加代码:
MEMORY
{
FLASH : ORIGIN = 0x00000000, LENGTH = 256K
RAM : ORIGIN = 0x20000000, LENGTH = 64K
}

相关文章

网友评论

      本文标题:rust项目优化

      本文链接:https://www.haomeiwen.com/subject/rjsoiqtx.html