sparc-experiments
所属分类:嵌入式/单片机/硬件编程
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2023-09-08 13:17:45
上 传 者:
sh-1993
说明: 盖斯勒LEON3上的锈迹,
(Rust on the Gaisler LEON3,)
文件列表:
LICENSE-APACHE (9723, 2023-09-14)
LICENSE-MIT (1072, 2023-09-14)
sparc-demo-c/ (0, 2023-09-14)
sparc-demo-c/Makefile (285, 2023-09-14)
sparc-demo-c/sim-commands.txt (9, 2023-09-14)
sparc-demo-c/test1.c (104, 2023-09-14)
sparc-demo-rtems/ (0, 2023-09-14)
sparc-demo-rtems/Makefile (641, 2023-09-14)
sparc-demo-rtems/rtems-rust.c (1406, 2023-09-14)
sparc-demo-rtems/rtemsdemo/ (0, 2023-09-14)
sparc-demo-rtems/rtemsdemo/.cargo/ (0, 2023-09-14)
sparc-demo-rtems/rtemsdemo/.cargo/config.toml (716, 2023-09-14)
sparc-demo-rtems/rtemsdemo/Cargo.lock (153, 2023-09-14)
sparc-demo-rtems/rtemsdemo/Cargo.toml (114, 2023-09-14)
sparc-demo-rtems/rtemsdemo/src/ (0, 2023-09-14)
sparc-demo-rtems/rtemsdemo/src/lib.rs (1768, 2023-09-14)
sparc-demo-rtems/sim-commands.txt (9, 2023-09-14)
sparc-demo-rust/ (0, 2023-09-14)
sparc-demo-rust/.cargo/ (0, 2023-09-14)
sparc-demo-rust/.cargo/config.toml (710, 2023-09-14)
sparc-demo-rust/Cargo.lock (159, 2023-09-14)
sparc-demo-rust/Cargo.toml (369, 2023-09-14)
sparc-demo-rust/sim-commands.txt (9, 2023-09-14)
sparc-demo-rust/src/ (0, 2023-09-14)
sparc-demo-rust/src/main.rs (1466, 2023-09-14)
sparc-docker/ (0, 2023-09-14)
sparc-docker/Dockerfile (1245, 2023-09-14)
# sparc-experiments
Rust on the Gaisler LEON3
There is a docker container in [`sparc-docker/Dockerfile`](https://github.com/ferrous-systems/sparc-experiments/blob/master/./sparc-docker/Dockerfile).
```console
cd sparc-docker
docker build -t sparc-docker .
```
The docker container downloads SPARC tools and the TSIM simulator from Gaisler. You should check the licences for those tools before distributing the built container containing them.
There is a C example in `sparc-demo-c` (to check the tools work):
```console
$ docker run --rm -ti -v $(pwd):/work sparc-docker
# cd /work/sparc-demo-c
# make run
```
There is a Rust example in `sparc-demo-rustc`. See the [README](https://github.com/ferrous-systems/sparc-experiments/blob/master/./sparc-demo-rust/README.md) for more info.
```console
$ docker run --rm -ti -v $(pwd):/work sparc-docker
# cd /work/sparc-demo-rust
# cargo +nightly run --release
```
## Licence
Copyright (c) Ferrous Systems, 2023
Licensed under either [MIT](https://github.com/ferrous-systems/sparc-experiments/blob/master/./LICENSE-MIT) or [Apache-2.0](https://github.com/ferrous-systems/sparc-experiments/blob/master/./LICENSE-APACHE) at
your option.
## Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you shall be licensed as above, without any
additional terms or conditions.
近期下载者:
相关文件:
收藏者: