microwatt/rust_lib_demo
Anton Blanchard 05f4f68c54 rust_lib_demo: Remove bin2hex.py
We are using scripts/bin2hex.py, so we can get rid of this copy.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
..
.cargo Add Rust demo
src Add Rust demo
Cargo.toml rust_lib_demo: Update package dependencies to fix a build error
Makefile rust_lib_demo: Use common console code
README.md Add Rust demo
Xargo.toml Add Rust demo
console.c rust_lib_demo: Use common console code
console.h rust_lib_demo: Use common console code
head.S Add Rust demo
hello_world.c rust_lib_demo: Use common console code
powerpc.lds Add Rust demo

README.md

I made a minimal Rust demo.

This needs a rebuild of the core library with xargo (https://github.com/japaric/xargo) for working soft floating-point support.

Steps:

$ rustup default nightly

$ rustup target add powerpc64le-unknown-linux-gnu

$ rustup component add rust-src

$ cargo install xargo

$ make $ make run

ln -sf hello_world.bin main_ram.bin ../core_tb > /dev/null Hello World Rust i 2 5 5 i 3 3.3333333333333335 3.3333333333333335 [-9, -6, 2, 3] !panicked at 'test', src/lib.rs:58:5