rustc_target/spec/targets/
armv7r_none_eabihf.rs

1// Targets the Little-endian Cortex-R4F/R5F processor (ARMv7-R)
2
3use crate::spec::{
4    Cc, FloatAbi, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetOptions,
5};
6
7pub(crate) fn target() -> Target {
8    Target {
9        llvm_target: "armv7r-none-eabihf".into(),
10        metadata: crate::spec::TargetMetadata {
11            description: Some("Armv7-R, hardfloat".into()),
12            tier: Some(2),
13            host_tools: Some(false),
14            std: Some(false),
15        },
16        pointer_width: 32,
17        data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
18        arch: "arm".into(),
19
20        options: TargetOptions {
21            abi: "eabihf".into(),
22            llvm_floatabi: Some(FloatAbi::Hard),
23            linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
24            linker: Some("rust-lld".into()),
25            relocation_model: RelocModel::Static,
26            panic_strategy: PanicStrategy::Abort,
27            features: "+vfp3d16".into(),
28            max_atomic_width: Some(64),
29            emit_debug_gdb_scripts: false,
30            // GCC defaults to 8 for arm-none here.
31            c_enum_min_bits: Some(8),
32            ..Default::default()
33        },
34    }
35}