Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 329 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 329 Bytes

FFI Hello

这是一个使用 Rust FFI 绑定 C 语言的案例。

安装 ARM GCC 编译环境

sudo pacman -S arm-none-eabi-gcc arm-none-eabi-newlib

编译

绑定是动态生成。

cargo build --package ffi_hello

测试

cargo test --target thumbv7m-none-eabi -p ffi_hello