没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
flip-link 为嵌入式程序添加零成本的堆栈溢出保护 问题 在堆栈溢出的情况下,裸机Rust程序可能不是内存安全的。 例如,基于cortex-m-rt板条箱的v0.6.x的Rust程序就是这种情况。 下面的程序,其中包含unsafe代码块,如果达到堆栈溢出条件,则可能会以不确定的方式运行。 // static variables placed in the .bss / .data sections static FLAG1: AtomicBool = AtomicU32 :: new ( false ); // .bss static FLAG2: AtomicBool = AtomicU32 :: new ( true ); // .data fn main () { let _x = fib ( 100 ); } #[inline(never)] fn fib (
资源推荐
资源详情
资源评论
收起资源包目录
flip-link-main.zip (22个子文件)
flip-link-main
LICENSE-MIT 1022B
LICENSE-APACHE 11KB
Cargo.lock 7KB
.github
FUNDING.yml 725B
workflows
ci.yml 2KB
bors.toml 46B
assets
flipped.svg 13KB
overflow.svg 14KB
test-flip-link-app
Cargo.toml 331B
examples
exception.rs 639B
crash.rs 315B
hello.rs 350B
panic.rs 144B
.gitignore 167B
.cargo
config.toml 266B
src
main.rs 11KB
argument_parser.rs 1KB
linking.rs 2KB
Cargo.toml 619B
.gitignore 8B
CHANGELOG.md 766B
README.md 5KB
共 22 条
- 1
资源评论
看不见的天边
- 粉丝: 20
- 资源: 4610
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功