]>
Commit | Line | Data |
---|---|---|
c30ab7b3 SL |
1 | // Targets the Cortex-M3 processor (ARMv7-M) |
2 | ||
29967ef6 | 3 | use crate::spec::{Target, TargetOptions}; |
c30ab7b3 | 4 | |
29967ef6 XL |
5 | pub fn target() -> Target { |
6 | Target { | |
c30ab7b3 | 7 | llvm_target: "thumbv7m-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(), |
c30ab7b3 | 10 | arch: "arm".to_string(), |
c30ab7b3 | 11 | |
136023e0 XL |
12 | options: TargetOptions { |
13 | abi: "eabi".to_string(), | |
14 | max_atomic_width: Some(32), | |
15 | ..super::thumb_base::opts() | |
16 | }, | |
29967ef6 | 17 | } |
c30ab7b3 | 18 | } |