rustc_target/spec/targets/
mipsel_sony_psx.rs1use crate::spec::{
2 Arch, Cc, LinkerFlavor, Lld, LlvmAbi, Os, PanicStrategy, RelocModel, Target, TargetMetadata,
3 TargetOptions, cvs,
4};
5
6pub(crate) fn target() -> Target {
7 Target {
8 llvm_target: "mipsel-sony-psx".into(),
9 metadata: TargetMetadata {
10 description: Some("MIPS (LE) Sony PlayStation 1 (PSX)".into()),
11 tier: Some(3),
12 host_tools: Some(false),
13 std: Some(false),
14 },
15 pointer_width: 32,
16 data_layout: "e-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".into(),
17 arch: Arch::Mips,
18
19 options: TargetOptions {
20 os: Os::Psx,
25 vendor: "sony".into(),
26 linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
27 cpu: "mips1".into(),
28 executables: true,
29 linker: Some("rust-lld".into()),
30 relocation_model: RelocModel::Static,
31 exe_suffix: ".exe".into(),
32
33 features: "+soft-float".into(),
35
36 max_atomic_width: Some(0),
41
42 llvm_args: cvs!["-mno-check-zero-division"],
44 llvm_abiname: LlvmAbi::O32,
45 panic_strategy: PanicStrategy::Abort,
46 ..Default::default()
47 },
48 }
49}