Files
rust/src/doc/rustc/src/platform-support.md
Matthias Krüger 586154b946 Rollup merge of #126380 - SergioGasquez:feat/std-xtensa, r=davidtwco
Add std Xtensa targets support

Adds std Xtensa targets. This enables using Rust on ESP32, ESP32-S2 and ESP32-S3 chips.

Tier 3 policy:

> A tier 3 target must have a designated developer or developers (the "target maintainers") on
record to be CCed when issues arise regarding the target. (The mechanism to track and CC such
developers may evolve over time.)

`@MabezDev,` `@ivmarkov` and I (`@SergioGasquez)` will maintain the targets.

> Targets must use naming consistent with any existing targets; for instance, a target for the same
CPU or OS as an existing Rust target should use the same name for that CPU or OS. Targets should
normally use the same names and naming conventions as used elsewhere in the broader ecosystem beyond
Rust (such as in other toolchains), unless they have a very good reason to diverge. Changing the
name of a target can be highly disruptive, especially once the target reaches a higher tier, so
getting the name right is important even for a tier 3 target.

The target triple is consistent with other targets.

> Target names should not introduce undue confusion or ambiguity unless absolutely necessary to
maintain ecosystem compatibility. For example, if the name of the target makes people extremely
likely to form incorrect beliefs about what it targets, the name should be changed or augmented to
disambiguate it.
> If possible, use only letters, numbers, dashes and underscores for the name. Periods (.) are known
to cause issues in Cargo.

We follow the same naming convention as other targets.

> Tier 3 targets may have unusual requirements to build or use, but must not create legal issues or
impose onerous legal terms for the Rust project or for Rust developers or users.

The target does not introduce any legal issues.

> The target must not introduce license incompatibilities.

There are no license incompatibilities

> Anything added to the Rust repository must be under the standard Rust license (MIT OR Apache-2.0).
Everything added is under that licenses

> The target must not cause the Rust tools or libraries built for any other host (even when
supporting cross-compilation to the target) to depend on any new dependency less permissive than the
Rust licensing policy. This applies whether the dependency is a Rust crate that would require adding
new license exceptions (as specified by the tidy tool in the rust-lang/rust repository), or whether
the dependency is a native library or binary. In other words, the introduction of the target must
not cause a user installing or running a version of Rust or the Rust tools to be subject to any new
license requirements.

Requirements are not changed for any other target.

> Compiling, linking, and emitting functional binaries, libraries, or other code for the target
(whether hosted on the target itself or cross-compiling from another target) must not depend on
proprietary (non-FOSS) libraries. Host tools built for the target itself may depend on the ordinary
runtime libraries supplied by the platform and commonly used by other applications built for the
target, but those libraries must not be required for code generation for the target;
cross-compilation to the target must not require such libraries at all. For instance, rustc built
for the target may depend on a common proprietary C runtime library or console output library, but
must not depend on a proprietary code generation library or code optimization library. Rust's
license permits such combinations, but the Rust project has no interest in maintaining such
combinations within the scope of Rust itself, even at tier 3.

The linker used by the targets is the GCC linker from the GCC toolchain cross-compiled for Xtensa.
GNU GPL.

> "onerous" here is an intentionally subjective term. At a minimum, "onerous" legal/licensing terms
include but are not limited to: non-disclosure requirements, non-compete requirements, contributor
license agreements (CLAs) or equivalent, "non-commercial"/"research-only"/etc terms, requirements
conditional on the employer or employment of any particular Rust developers, revocable terms, any
requirements that create liability for the Rust project or its developers or users, or any
requirements that adversely affect the livelihood or prospects of the Rust project or its developers
or users.

No such terms exist for this target

> Neither this policy nor any decisions made regarding targets shall create any binding agreement or
estoppel by any party. If any member of an approving Rust team serves as one of the maintainers of a
target, or has any legal or employment requirement (explicit or implicit) that might affect their
decisions regarding a target, they must recuse themselves from any approval decisions regarding the
target's tier status, though they may otherwise participate in discussions.

> This requirement does not prevent part or all of this policy from being cited in an explicit
contract or work agreement (e.g. to implement or maintain support for a target). This requirement
exists to ensure that a developer or team responsible for reviewing and approving a target does not
face any legal threats or obligations that would prevent them from freely exercising their judgment
in such approval, even if such judgment involves subjective matters or goes beyond the letter of
these requirements.

Understood

> Tier 3 targets should attempt to implement as much of the standard libraries as possible and
appropriate (core for most targets, alloc for targets that can support dynamic memory allocation,
std for targets with an operating system or equivalent layer of system-provided functionality), but
may leave some code unimplemented (either unavailable or stubbed out as appropriate), whether
because the target makes it impossible to implement or challenging to implement. The authors of pull
requests are not obligated to avoid calling any portions of the standard library on the basis of a
tier 3 target not implementing those portions.

The targets implement libStd almost in its entirety, except for the missing support for process, as
this is a bare metal platform. The process `sys\unix` module is currently stubbed to return "not
implemented" errors.

> The target must provide documentation for the Rust community explaining how to build for the
target, using cross-compilation if possible. If the target supports running binaries, or running
tests (even if they do not pass), the documentation must explain how to run such binaries or tests
for the target, using emulation if possible or dedicated hardware if necessary.

Here is how to build for the target https://docs.esp-rs.org/book/installation/riscv-and-xtensa.html
and it also covers how to run binaries on the target.

> Tier 3 targets must not impose burden on the authors of pull requests, or other developers in the
community, to maintain the target. In particular, do not post comments (automated or manual) on a PR
that derail or suggest a block on the PR based on a tier 3 target. Do not send automated messages or
notifications (via any medium, including via `@)` to a PR author or others involved with a PR
regarding a tier 3 target, unless they have opted into such messages.

> Backlinks such as those generated by the issue/PR tracker when linking to an issue or PR are not
considered a violation of this policy, within reason. However, such messages (even on a separate
repository) must not generate notifications to anyone involved with a PR who has not requested such
notifications.

Understood

> Patches adding or updating tier 3 targets must not break any existing tier 2 or tier 1 target, and
must not knowingly break another tier 3 target without approval of either the compiler team or the
maintainers of the other tier 3 target.

> In particular, this may come up when working on closely related targets, such as variations of the
same architecture with different features. Avoid introducing unconditional uses of features that
another variation of the target may not have; use conditional compilation or runtime detection, as
appropriate, to let each target run code supported by that target.

No other targets should be affected

> Tier 3 targets must be able to produce assembly using at least one of rustc's supported backends
from any host target.

It can produce assembly, but it requires a custom LLVM with Xtensa support
(https://github.com/espressif/llvm-project/). The patches are trying to be upstreamed
(https://github.com/espressif/llvm-project/issues/4)
2024-06-20 14:07:01 +02:00

27 KiB

Platform Support

<style type="text/css"> td code { white-space: nowrap; } </style>

Support for different platforms ("targets") are organized into three tiers, each with a different set of guarantees. For more information on the policies for targets at each tier, see the Target Tier Policy.

Targets are identified by their "target triple" which is the string to inform the compiler what kind of output should be produced.

Component availability is tracked here.

Tier 1 with Host Tools

Tier 1 targets can be thought of as "guaranteed to work". The Rust project builds official binary releases for each tier 1 target, and automated testing ensures that each tier 1 target builds and passes tests after each change.

Tier 1 targets with host tools additionally support running tools like rustc and cargo natively on the target, and automated testing ensures that tests pass for the host tools as well. This allows the target to be used as a development platform, not just a compilation target. For the full requirements, see Tier 1 with Host Tools in the Target Tier Policy.

All tier 1 targets with host tools support the full standard library.

target notes
aarch64-unknown-linux-gnu ARM64 Linux (kernel 4.1, glibc 2.17+)
i686-pc-windows-gnu 32-bit MinGW (Windows 10+, Windows Server 2016+) 1
i686-pc-windows-msvc 32-bit MSVC (Windows 10+, Windows Server 2016+) 1
i686-unknown-linux-gnu 32-bit Linux (kernel 3.2+, glibc 2.17+) 1
x86_64-apple-darwin 64-bit macOS (10.12+, Sierra+)
x86_64-pc-windows-gnu 64-bit MinGW (Windows 10+, Windows Server 2016+)
x86_64-pc-windows-msvc 64-bit MSVC (Windows 10+, Windows Server 2016+)
x86_64-unknown-linux-gnu 64-bit Linux (kernel 3.2+, glibc 2.17+)

Tier 1

Tier 1 targets can be thought of as "guaranteed to work". The Rust project builds official binary releases for each tier 1 target, and automated testing ensures that each tier 1 target builds and passes tests after each change. For the full requirements, see Tier 1 target policy in the Target Tier Policy.

At this time, all Tier 1 targets are Tier 1 with Host Tools.

Tier 2 with Host Tools

Tier 2 targets can be thought of as "guaranteed to build". The Rust project builds official binary releases of the standard library (or, in some cases, only the core library) for each tier 2 target, and automated builds ensure that each tier 2 target can be used as build target after each change. Automated tests are not always run so it's not guaranteed to produce a working build, but tier 2 targets often work to quite a good degree and patches are always welcome!

Tier 2 target-specific code is not closely scrutinized by Rust team(s) when modifications are made. Bugs are possible in all code, but the level of quality control for these targets is likely to be lower. See library team policy for details on the review practices for standard library code.

Tier 2 targets with host tools additionally support running tools like rustc and cargo natively on the target, and automated builds ensure that the host tools build as well. This allows the target to be used as a development platform, not just a compilation target. For the full requirements, see Tier 2 with Host Tools in the Target Tier Policy.

All tier 2 targets with host tools support the full standard library.

NOTE: The rust-docs component is not usually built for tier 2 targets, so Rustup may install the documentation for a similar tier 1 target instead.

target notes
aarch64-apple-darwin ARM64 macOS (11.0+, Big Sur+)
aarch64-pc-windows-msvc ARM64 Windows MSVC
aarch64-unknown-linux-musl ARM64 Linux with musl 1.2.3
arm-unknown-linux-gnueabi Armv6 Linux (kernel 3.2, glibc 2.17)
arm-unknown-linux-gnueabihf Armv6 Linux, hardfloat (kernel 3.2, glibc 2.17)
armv7-unknown-linux-gnueabihf Armv7-A Linux, hardfloat (kernel 3.2, glibc 2.17)
loongarch64-unknown-linux-gnu LoongArch64 Linux, LP64D ABI (kernel 5.19, glibc 2.36)
powerpc-unknown-linux-gnu PowerPC Linux (kernel 3.2, glibc 2.17)
powerpc64-unknown-linux-gnu PPC64 Linux (kernel 3.2, glibc 2.17)
powerpc64le-unknown-linux-gnu PPC64LE Linux (kernel 3.10, glibc 2.17)
riscv64gc-unknown-linux-gnu RISC-V Linux (kernel 4.20, glibc 2.29)
s390x-unknown-linux-gnu S390x Linux (kernel 3.2, glibc 2.17)
x86_64-unknown-freebsd 64-bit FreeBSD
x86_64-unknown-illumos illumos
x86_64-unknown-linux-musl 64-bit Linux with musl 1.2.3
x86_64-unknown-netbsd NetBSD/amd64

Tier 2 without Host Tools

Tier 2 targets can be thought of as "guaranteed to build". The Rust project builds official binary releases of the standard library (or, in some cases, only the core library) for each tier 2 target, and automated builds ensure that each tier 2 target can be used as build target after each change. Automated tests are not always run so it's not guaranteed to produce a working build, but tier 2 targets often work to quite a good degree and patches are always welcome! For the full requirements, see Tier 2 target policy in the Target Tier Policy.

The std column in the table below has the following meanings:

  • ✓ indicates the full standard library is available.
  • * indicates the target only supports no_std development.
  • ? indicates the standard library support is unknown or a work-in-progress.

Tier 2 target-specific code is not closely scrutinized by Rust team(s) when modifications are made. Bugs are possible in all code, but the level of quality control for these targets is likely to be lower. See library team policy for details on the review practices for standard library code.

NOTE: The rust-docs component is not usually built for tier 2 targets, so Rustup may install the documentation for a similar tier 1 target instead.

target std notes
aarch64-apple-ios ✓ ARM64 iOS
aarch64-apple-ios-sim ✓ Apple iOS Simulator on ARM64
aarch64-fuchsia ✓ Alias for aarch64-unknown-fuchsia
aarch64-unknown-fuchsia ✓ ARM64 Fuchsia
aarch64-linux-android ✓ ARM64 Android
aarch64-pc-windows-gnullvm ✓ ARM64 MinGW (Windows 10+), LLVM ABI
aarch64-unknown-linux-ohos ✓ ARM64 OpenHarmony
aarch64-unknown-none-softfloat * Bare ARM64, softfloat
aarch64-unknown-none * Bare ARM64, hardfloat
aarch64-unknown-uefi ? ARM64 UEFI
arm-linux-androideabi ✓ Armv6 Android
arm-unknown-linux-musleabi ✓ Armv6 Linux with musl 1.2.3
arm-unknown-linux-musleabihf ✓ Armv6 Linux with musl 1.2.3, hardfloat
arm64ec-pc-windows-msvc ✓ Arm64EC Windows MSVC
armebv7r-none-eabi * Bare Armv7-R, Big Endian
armebv7r-none-eabihf * Bare Armv7-R, Big Endian, hardfloat
armv5te-unknown-linux-gnueabi ✓ Armv5TE Linux (kernel 4.4, glibc 2.23)
armv5te-unknown-linux-musleabi ✓ Armv5TE Linux with musl 1.2.3
armv7-linux-androideabi ✓ Armv7-A Android
armv7-unknown-linux-gnueabi ✓ Armv7-A Linux (kernel 4.15, glibc 2.27)
armv7-unknown-linux-musleabi ✓ Armv7-A Linux with musl 1.2.3
armv7-unknown-linux-musleabihf ✓ Armv7-A Linux with musl 1.2.3, hardfloat
armv7-unknown-linux-ohos ✓ Armv7-A OpenHarmony
armv7a-none-eabi * Bare Armv7-A
armv7r-none-eabi * Bare Armv7-R
armv7r-none-eabihf * Bare Armv7-R, hardfloat
i586-pc-windows-msvc * 32-bit Windows w/o SSE 2
i586-unknown-linux-gnu ✓ 32-bit Linux w/o SSE (kernel 3.2, glibc 2.17) 2
i586-unknown-linux-musl ✓ 32-bit Linux w/o SSE, musl 1.2.3 2
i686-linux-android ✓ 32-bit x86 Android 1
i686-pc-windows-gnullvm ✓ 32-bit x86 MinGW (Windows 10+), LLVM ABI 1
i686-unknown-freebsd ✓ 32-bit FreeBSD 1
i686-unknown-linux-musl ✓ 32-bit Linux with musl 1.2.3 1
i686-unknown-uefi ? 32-bit UEFI
loongarch64-unknown-none *
loongarch64-unknown-none-softfloat *
nvptx64-nvidia-cuda * --emit=asm generates PTX code that runs on NVIDIA GPUs
riscv32imac-unknown-none-elf * Bare RISC-V (RV32IMAC ISA)
riscv32i-unknown-none-elf * Bare RISC-V (RV32I ISA)
riscv32im-unknown-none-elf *
riscv32imc-unknown-none-elf * Bare RISC-V (RV32IMC ISA)
riscv32imafc-unknown-none-elf * Bare RISC-V (RV32IMAFC ISA)
riscv64gc-unknown-none-elf * Bare RISC-V (RV64IMAFDC ISA)
riscv64imac-unknown-none-elf * Bare RISC-V (RV64IMAC ISA)
sparc64-unknown-linux-gnu ✓ SPARC Linux (kernel 4.4, glibc 2.23)
sparcv9-sun-solaris ✓ SPARC Solaris 11, illumos
thumbv6m-none-eabi * Bare Armv6-M
thumbv7em-none-eabi * Bare Armv7E-M
thumbv7em-none-eabihf * Bare Armv7E-M, hardfloat
thumbv7m-none-eabi * Bare Armv7-M
thumbv7neon-linux-androideabi ✓ Thumb2-mode Armv7-A Android with NEON
thumbv7neon-unknown-linux-gnueabihf ✓ Thumb2-mode Armv7-A Linux with NEON (kernel 4.4, glibc 2.23)
thumbv8m.base-none-eabi * Bare Armv8-M Baseline
thumbv8m.main-none-eabi * Bare Armv8-M Mainline
thumbv8m.main-none-eabihf * Bare Armv8-M Mainline, hardfloat
wasm32-unknown-emscripten ✓ WebAssembly via Emscripten
wasm32-unknown-unknown ✓ WebAssembly
wasm32-wasi ✓ WebAssembly with WASI (undergoing a rename to wasm32-wasip1)
wasm32-wasip1 ✓ WebAssembly with WASI
wasm32-wasip1-threads ✓
x86_64-apple-ios ✓ 64-bit x86 iOS
x86_64-fortanix-unknown-sgx ✓ Fortanix ABI for 64-bit Intel SGX
x86_64-fuchsia ✓ Alias for x86_64-unknown-fuchsia
x86_64-unknown-fuchsia ✓ 64-bit x86 Fuchsia
x86_64-linux-android ✓ 64-bit x86 Android
x86_64-pc-solaris ✓ 64-bit Solaris 11, illumos
x86_64-pc-windows-gnullvm ✓ 64-bit x86 MinGW (Windows 10+), LLVM ABI
x86_64-unknown-linux-gnux32 ✓ 64-bit Linux (x32 ABI) (kernel 4.15, glibc 2.27)
x86_64-unknown-linux-ohos ✓ x86_64 OpenHarmony
x86_64-unknown-none * Freestanding/bare-metal x86_64, softfloat
x86_64-unknown-redox ✓ Redox OS
x86_64-unknown-uefi ? 64-bit UEFI

Tier 3

Tier 3 targets are those which the Rust codebase has support for, but which the Rust project does not build or test automatically, so they may or may not work. Official builds are not available. For the full requirements, see Tier 3 target policy in the Target Tier Policy.

The std column in the table below has the following meanings:

  • ✓ indicates the full standard library is available.
  • * indicates the target only supports no_std development.
  • ? indicates the standard library support is unknown or a work-in-progress.

Tier 3 target-specific code is not closely scrutinized by Rust team(s) when modifications are made. Bugs are possible in all code, but the level of quality control for these targets is likely to be lower. See library team policy for details on the review practices for standard library code.

The host column indicates whether the codebase includes support for building host tools.

target std host notes
arm64e-apple-ios ✓ ARM64e Apple iOS
arm64e-apple-darwin ✓ ✓ ARM64e Apple Darwin
aarch64-apple-ios-macabi ✓ Apple Catalyst on ARM64
aarch64-apple-tvos ✓ ARM64 tvOS
aarch64-apple-tvos-sim ✓ ARM64 tvOS Simulator
aarch64-apple-watchos ✓ ARM64 Apple WatchOS
aarch64-apple-watchos-sim ✓ ARM64 Apple WatchOS Simulator
aarch64-apple-visionos ✓ ARM64 Apple visionOS
aarch64-apple-visionos-sim ✓ ARM64 Apple visionOS Simulator
aarch64-kmc-solid_asp3 ✓ ARM64 SOLID with TOPPERS/ASP3
aarch64-nintendo-switch-freestanding * ARM64 Nintendo Switch, Horizon
aarch64-unknown-teeos ? ARM64 TEEOS
aarch64-unknown-nto-qnx710 ✓ ARM64 QNX Neutrino 7.1 RTOS
aarch64-unknown-freebsd ✓ ✓ ARM64 FreeBSD
aarch64-unknown-hermit ✓ ARM64 Hermit
aarch64-unknown-illumos ✓ ✓ ARM64 illumos
aarch64-unknown-linux-gnu_ilp32 ✓ ✓ ARM64 Linux (ILP32 ABI)
aarch64-unknown-netbsd ✓ ✓ ARM64 NetBSD
aarch64-unknown-openbsd ✓ ✓ ARM64 OpenBSD
aarch64-unknown-redox ✓ ARM64 Redox OS
aarch64-uwp-windows-msvc ✓
aarch64-wrs-vxworks ?
aarch64_be-unknown-linux-gnu_ilp32 ✓ ✓ ARM64 Linux (big-endian, ILP32 ABI)
aarch64_be-unknown-linux-gnu ✓ ✓ ARM64 Linux (big-endian)
aarch64_be-unknown-netbsd ✓ ✓ ARM64 NetBSD (big-endian)
arm64_32-apple-watchos ✓ Arm Apple WatchOS 64-bit with 32-bit pointers
armeb-unknown-linux-gnueabi ✓ ? Arm BE8 the default Arm big-endian architecture since Armv6.
armv4t-none-eabi * Bare Armv4T
armv4t-unknown-linux-gnueabi ? Armv4T Linux
armv5te-none-eabi * Bare Armv5TE
armv5te-unknown-linux-uclibceabi ? Armv5TE Linux with uClibc
armv6-unknown-freebsd ✓ ✓ Armv6 FreeBSD
armv6-unknown-netbsd-eabihf ✓ ✓ Armv6 NetBSD w/hard-float
armv6k-nintendo-3ds ? Armv6k Nintendo 3DS, Horizon (Requires devkitARM toolchain)
armv7-sony-vita-newlibeabihf ✓ Armv7-A Cortex-A9 Sony PlayStation Vita (requires VITASDK toolchain)
armv7-unknown-linux-uclibceabi ✓ ✓ Armv7-A Linux with uClibc, softfloat
armv7-unknown-linux-uclibceabihf ✓ ? Armv7-A Linux with uClibc, hardfloat
armv7-unknown-freebsd ✓ ✓ Armv7-A FreeBSD
armv7-unknown-netbsd-eabihf ✓ ✓ Armv7-A NetBSD w/hard-float
armv7-wrs-vxworks-eabihf ? Armv7-A for VxWorks
armv7a-kmc-solid_asp3-eabi ✓ ARM SOLID with TOPPERS/ASP3
armv7a-kmc-solid_asp3-eabihf ✓ ARM SOLID with TOPPERS/ASP3, hardfloat
armv7a-none-eabihf * Bare Armv7-A, hardfloat
armv7k-apple-watchos ✓ Armv7-A Apple WatchOS
armv7s-apple-ios ✓ Armv7-A Apple-A6 Apple iOS
armv8r-none-eabihf * Bare Armv8-R, hardfloat
avr-unknown-gnu-atmega328 * AVR. Requires -Z build-std=core
bpfeb-unknown-none * BPF (big endian)
bpfel-unknown-none * BPF (little endian)
csky-unknown-linux-gnuabiv2 ✓ C-SKY abiv2 Linux (little endian)
csky-unknown-linux-gnuabiv2hf ✓ C-SKY abiv2 Linux, hardfloat (little endian)
hexagon-unknown-none-elf * Bare Hexagon (v60+, HVX)
hexagon-unknown-linux-musl ✓ Hexagon Linux with musl 1.2.3
i386-apple-ios ✓ 32-bit x86 iOS 1
i586-pc-nto-qnx700 * 32-bit x86 QNX Neutrino 7.0 RTOS 1
i586-unknown-netbsd ✓ 32-bit x86, restricted to Pentium
i686-apple-darwin ✓ ✓ 32-bit macOS (10.12+, Sierra+) 1
i686-unknown-haiku ✓ ✓ 32-bit Haiku 1
i686-unknown-hurd-gnu ✓ ✓ 32-bit GNU/Hurd 1
i686-unknown-netbsd ✓ ✓ NetBSD/i386 with SSE2 1
i686-unknown-openbsd ✓ ✓ 32-bit OpenBSD 1
i686-unknown-redox ✓ i686 Redox OS
i686-uwp-windows-gnu ✓ 1
i686-uwp-windows-msvc ✓ 1
i686-win7-windows-msvc ✓ 32-bit Windows 7 support 1
i686-wrs-vxworks ? 1
loongarch64-unknown-linux-musl ? LoongArch64 Linux (LP64D ABI) with musl 1.2.3
m68k-unknown-linux-gnu ? Motorola 680x0 Linux
mips-unknown-linux-gnu ✓ ✓ MIPS Linux (kernel 4.4, glibc 2.23)
mips-unknown-linux-musl ✓ MIPS Linux with musl 1.2.3
mips-unknown-linux-uclibc ✓ MIPS Linux with uClibc
mips64-openwrt-linux-musl ? MIPS64 for OpenWrt Linux musl 1.2.3
mips64-unknown-linux-gnuabi64 ✓ ✓ MIPS64 Linux, N64 ABI (kernel 4.4, glibc 2.23)
mips64-unknown-linux-muslabi64 ✓ MIPS64 Linux, N64 ABI, musl 1.2.3
mips64el-unknown-linux-gnuabi64 ✓ ✓ MIPS64 (little endian) Linux, N64 ABI (kernel 4.4, glibc 2.23)
mips64el-unknown-linux-muslabi64 ✓ MIPS64 (little endian) Linux, N64 ABI, musl 1.2.3
mipsel-unknown-linux-gnu ✓ ✓ MIPS (little endian) Linux (kernel 4.4, glibc 2.23)
mipsel-unknown-linux-musl ✓ MIPS (little endian) Linux with musl 1.2.3
mipsel-unknown-netbsd ✓ ✓ 32-bit MIPS (LE), requires mips32 cpu support
mipsel-sony-psp * MIPS (LE) Sony PlayStation Portable (PSP)
mipsel-sony-psx * MIPS (LE) Sony PlayStation 1 (PSX)
mipsel-unknown-linux-uclibc ✓ MIPS (LE) Linux with uClibc
mipsel-unknown-none * Bare MIPS (LE) softfloat
mipsisa32r6-unknown-linux-gnu ? 32-bit MIPS Release 6 Big Endian
mipsisa32r6el-unknown-linux-gnu ? 32-bit MIPS Release 6 Little Endian
mipsisa64r6-unknown-linux-gnuabi64 ? 64-bit MIPS Release 6 Big Endian
mipsisa64r6el-unknown-linux-gnuabi64 ✓ ✓ 64-bit MIPS Release 6 Little Endian
msp430-none-elf * 16-bit MSP430 microcontrollers
powerpc-unknown-linux-gnuspe ✓ PowerPC SPE Linux
powerpc-unknown-linux-musl ? PowerPC Linux with musl 1.2.3
powerpc-unknown-netbsd ✓ ✓ NetBSD 32-bit powerpc systems
powerpc-unknown-openbsd ?
powerpc-wrs-vxworks-spe ?
powerpc-wrs-vxworks ?
powerpc64-unknown-freebsd ✓ ✓ PPC64 FreeBSD (ELFv1 and ELFv2)
powerpc64le-unknown-freebsd PPC64LE FreeBSD
powerpc-unknown-freebsd PowerPC FreeBSD
powerpc64-unknown-linux-musl ? 64-bit PowerPC Linux with musl 1.2.3
powerpc64-wrs-vxworks ?
powerpc64le-unknown-linux-musl ? 64-bit PowerPC Linux with musl 1.2.3, Little Endian
powerpc64-unknown-openbsd ✓ ✓ OpenBSD/powerpc64
powerpc64-ibm-aix ? 64-bit AIX (7.2 and newer)
riscv32gc-unknown-linux-gnu RISC-V Linux (kernel 5.4, glibc 2.33)
riscv32gc-unknown-linux-musl RISC-V Linux (kernel 5.4, musl 1.2.3 + RISCV32 support patches)
riscv32im-risc0-zkvm-elf ? RISC Zero's zero-knowledge Virtual Machine (RV32IM ISA)
riscv32ima-unknown-none-elf * Bare RISC-V (RV32IMA ISA)
riscv32imac-unknown-xous-elf ? RISC-V Xous (RV32IMAC ISA)
riscv32imc-esp-espidf ✓ RISC-V ESP-IDF
riscv32imac-esp-espidf ✓ RISC-V ESP-IDF
riscv32imafc-esp-espidf ✓ RISC-V ESP-IDF
riscv64gc-unknown-hermit ✓ RISC-V Hermit
riscv64gc-unknown-freebsd RISC-V FreeBSD
riscv64gc-unknown-fuchsia RISC-V Fuchsia
riscv64gc-unknown-linux-musl RISC-V Linux (kernel 4.20, musl 1.2.3)
riscv64gc-unknown-netbsd ✓ ✓ RISC-V NetBSD
riscv64gc-unknown-openbsd ✓ ✓ OpenBSD/riscv64
riscv64-linux-android RISC-V 64-bit Android
s390x-unknown-linux-musl S390x Linux (kernel 3.2, musl 1.2.3)
sparc-unknown-linux-gnu ✓ 32-bit SPARC Linux
sparc-unknown-none-elf * Bare 32-bit SPARC V7+
sparc64-unknown-netbsd ✓ ✓ NetBSD/sparc64
sparc64-unknown-openbsd ✓ ✓ OpenBSD/sparc64
thumbv4t-none-eabi * Thumb-mode Bare Armv4T
thumbv5te-none-eabi * Thumb-mode Bare Armv5TE
thumbv7a-pc-windows-msvc ✓
thumbv7a-uwp-windows-msvc ✓
thumbv7neon-unknown-linux-musleabihf ? Thumb2-mode Armv7-A Linux with NEON, musl 1.2.3
wasm32-wasip2 ✓ WebAssembly
wasm64-unknown-unknown ? WebAssembly
x86_64-apple-ios-macabi ✓ Apple Catalyst on x86_64
x86_64-apple-tvos ✓ x86 64-bit tvOS
x86_64-apple-watchos-sim ✓ x86 64-bit Apple WatchOS simulator
x86_64-pc-nto-qnx710 ✓ x86 64-bit QNX Neutrino 7.1 RTOS
x86_64-unikraft-linux-musl ✓ 64-bit Unikraft with musl 1.2.3
x86_64-unknown-dragonfly ✓ ✓ 64-bit DragonFlyBSD
x86_64-unknown-haiku ✓ ✓ 64-bit Haiku
x86_64-unknown-hermit ✓ x86_64 Hermit
x86_64-unknown-l4re-uclibc ?
x86_64-unknown-openbsd ✓ ✓ 64-bit OpenBSD
x86_64-uwp-windows-gnu ✓
x86_64-uwp-windows-msvc ✓
x86_64-win7-windows-msvc ✓ 64-bit Windows 7 support
x86_64-wrs-vxworks ?
x86_64h-apple-darwin ✓ ✓ macOS with late-gen Intel (at least Haswell)
x86_64-unknown-linux-none * 64-bit Linux with no libc
xtensa-esp32-none-elf * Xtensa ESP32
xtensa-esp32-espidf ✓ Xtensa ESP32
xtensa-esp32s2-none-elf * Xtensa ESP32-S2
xtensa-esp32s2-espidf ✓ Xtensa ESP32-S2
xtensa-esp32s3-none-elf * Xtensa ESP32-S3
xtensa-esp32s3-espidf ✓ Xtensa ESP32-S3

  1. Due to limitations of the C ABI, floating-point support on i686 targets is non-compliant: floating-point return values are passed via an x87 register, so NaN payload bits can be lost. See issue #114479. ↩︎

  2. Floating-point support on i586 targets is non-compliant: the x87 registers and instructions used for these targets do not provide IEEE-754-compliant behavior, in particular when it comes to rounding and NaN payload bits. See issue #114479. ↩︎