Skip to content

Commit

Permalink
Add platform support doc for rv32e
Browse files Browse the repository at this point in the history
  • Loading branch information
hegza committed Oct 5, 2024
1 parent 346afc7 commit 6edd0b3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Rust test-suite on this target.
## Cross-compilation toolchains and C code

This target supports C code. If interlinking with C or C++, you may need to use
`riscv64-unknown-elf-gcc` as a linker instead of `rust-lld`.
`riscv32-unknown-elf-gcc` as a linker instead of `rust-lld`.
30 changes: 30 additions & 0 deletions src/doc/rustc/src/platform-support/riscv32e-unknown-none-elf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# `riscv32{e,em,emc}-unknown-none-elf`

**Tier: 3**

Bare-metal target for RISC-V CPUs with the RV32E, RV32EM and RV32EMC ISAs.

## Target maintainers

* Henri Lunnikivi, <[email protected]>, [@hegza](https://github.com/hegza)

## Requirements

The target is cross-compiled, and uses static linking. No external toolchain is
required and the default `rust-lld` linker works, but you must specify a linker
script.

## Building the target

This target is included in Rust and can be installed via `rustup`.

## Testing

This is a cross-compiled `no-std` target, which must be run either in a
simulator or by programming them onto suitable hardware. It is not possible to
run the Rust test-suite on this target.

## Cross-compilation toolchains and C code

This target supports C code. If interlinking with C or C++, you may need to use
`riscv32-unknown-elf-gcc` as a linker instead of `rust-lld`.

0 comments on commit 6edd0b3

Please sign in to comment.