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