# f1c200s_rust_helloworld **Repository Path**: dangbinghoo/f1c200s_rust_helloworld ## Basic Information - **Project Name**: f1c200s_rust_helloworld - **Description**: F1c200s ARM9板子上面运行Rust语言 helloworld - **Primary Language**: Rust - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 1. 安装rust armv5te的target ``` rustup target add armv5te-unknown-linux-gnueabi ``` # 2. 编译为arm版本 ``` $ RUSTFLAGS="-C linker=arm-buildroot-linux-gnueabi-gcc" cargo build --target=armv5te-unknown-linux-gnueabi --release ``` 或 ``` $ CARGO_TARGET_ARMV5TE_UNKNOWN_LINUX_GNUEABI_LINKER=arm-buildroot-linux-gnueabi-gcc ``` 因为LINKER环境变量的方式还得把target变为大写且用下划线,没有RUSTFLAGS简单直接,所以推荐第一条编译指令。 # 3. run ``` # ./hello < Hello fellow Rustaceans & Hello F1C200s! > ------------------------------------------ \ \ _~^~^~_ \) / o o \ (/ '_ - _' / '-----' \ ```