]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/thumbv8m_base_none_eabi.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / thumbv8m_base_none_eabi.rs
CommitLineData
a1dfa0c6
XL
1// Targets the Cortex-M23 processor (Baseline ARMv8-M)
2
29967ef6 3use crate::spec::{Target, TargetOptions};
a1dfa0c6 4
29967ef6
XL
5pub fn target() -> Target {
6 Target {
a1dfa0c6 7 llvm_target: "thumbv8m.base-none-eabi".to_string(),
29967ef6 8 pointer_width: 32,
416331ca 9 data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
a1dfa0c6 10 arch: "arm".to_string(),
a1dfa0c6
XL
11
12 options: TargetOptions {
136023e0 13 abi: "eabi".to_string(),
a1dfa0c6
XL
14 // ARMv8-M baseline doesn't support unaligned loads/stores so we disable them
15 // with +strict-align.
16 features: "+strict-align".to_string(),
17 max_atomic_width: Some(32),
dfeec247 18 ..super::thumb_base::opts()
a1dfa0c6 19 },
29967ef6 20 }
a1dfa0c6 21}