rustc_target/spec/targets/
mipsel_unknown_none.rs

1//! Bare MIPS32r2, little endian, softfloat, O32 calling convention
2//!
3//! Can be used for MIPS M4K core (e.g. on PIC32MX devices)
4
5use crate::spec::{
6    Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetMetadata, TargetOptions,
7};
8
9pub(crate) fn target() -> Target {
10    Target {
11        llvm_target: "mipsel-unknown-none".into(),
12        metadata: TargetMetadata {
13            description: Some("Bare MIPS (LE) softfloat".into()),
14            tier: Some(3),
15            host_tools: Some(false),
16            std: Some(false),
17        },
18        pointer_width: 32,
19        data_layout: "e-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".into(),
20        arch: "mips".into(),
21
22        options: TargetOptions {
23            linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
24            cpu: "mips32r2".into(),
25            features: "+mips32r2,+soft-float,+noabicalls".into(),
26            max_atomic_width: Some(32),
27            linker: Some("rust-lld".into()),
28            panic_strategy: PanicStrategy::Abort,
29            relocation_model: RelocModel::Static,
30            emit_debug_gdb_scripts: false,
31            ..Default::default()
32        },
33    }
34}