rustc_target/spec/targets/
thumbv7a_nuttx_eabi.rs

1// Targets Cortex-A7/A8/A9 processors (ARMv7-A)
2//
3// This target assumes that the device does NOT have a FPU (Floating Point Unit)
4// and will use software floating point operations. This matches the NuttX EABI
5// configuration without hardware floating point support.
6
7use crate::spec::{FloatAbi, Target, TargetOptions, base, cvs};
8
9pub(crate) fn target() -> Target {
10    Target {
11        llvm_target: "thumbv7a-none-eabi".into(),
12        metadata: crate::spec::TargetMetadata {
13            description: None,
14            tier: Some(3),
15            host_tools: None,
16            std: Some(true),
17        },
18        pointer_width: 32,
19        data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
20        arch: "arm".into(),
21
22        options: TargetOptions {
23            families: cvs!["unix"],
24            os: "nuttx".into(),
25            abi: "eabi".into(),
26            llvm_floatabi: Some(FloatAbi::Soft),
27            // Cortex-A7/A8/A9 with software floating point
28            features: "+soft-float,-neon".into(),
29            max_atomic_width: Some(64),
30            ..base::thumb::opts()
31        },
32    }
33}