Add platform support doc for rv32e · rust-lang/rust@6edd0b3 (original) (raw)
File tree
2 files changed
lines changed
- src/doc/rustc/src/platform-support
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -35,4 +35,4 @@ Rust test-suite on this target. | ||
35 | 35 | ## Cross-compilation toolchains and C code |
36 | 36 | |
37 | 37 | This target supports C code. If interlinking with C or C++, you may need to use |
38 | -`riscv64-unknown-elf-gcc` as a linker instead of `rust-lld`. | |
38 | +`riscv32-unknown-elf-gcc` as a linker instead of `rust-lld`. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
1 | +# `riscv32{e,em,emc}-unknown-none-elf` | |
2 | + | |
3 | +**Tier: 3** | |
4 | + | |
5 | +Bare-metal target for RISC-V CPUs with the RV32E, RV32EM and RV32EMC ISAs. | |
6 | + | |
7 | +## Target maintainers | |
8 | + | |
9 | +* Henri Lunnikivi, <henri.lunnikivi@gmail.com>, [@hegza](https://github.com/hegza) | |
10 | + | |
11 | +## Requirements | |
12 | + | |
13 | +The target is cross-compiled, and uses static linking. No external toolchain is | |
14 | +required and the default `rust-lld` linker works, but you must specify a linker | |
15 | +script. | |
16 | + | |
17 | +## Building the target | |
18 | + | |
19 | +This target is included in Rust and can be installed via `rustup`. | |
20 | + | |
21 | +## Testing | |
22 | + | |
23 | +This is a cross-compiled `no-std` target, which must be run either in a | |
24 | +simulator or by programming them onto suitable hardware. It is not possible to | |
25 | +run the Rust test-suite on this target. | |
26 | + | |
27 | +## Cross-compilation toolchains and C code | |
28 | + | |
29 | +This target supports C code. If interlinking with C or C++, you may need to use | |
30 | +`riscv32-unknown-elf-gcc` as a linker instead of `rust-lld`. |