Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6edd0b3

Browse files
committedOct 5, 2024
Add platform support doc for rv32e
1 parent 346afc7 commit 6edd0b3

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
 

‎src/doc/rustc/src/platform-support/riscv32-unknown-none-elf.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ Rust test-suite on this target.
3535
## Cross-compilation toolchains and C code
3636

3737
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 numberDiff line numberDiff 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`.

0 commit comments

Comments
 (0)
Failed to load comments.