-
Couldn't load subscription status.
- Fork 13.9k
ARMv6K Nintendo 3DS Tier 3 target added #88529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| use crate::spec::{LinkArgs, LinkerFlavor, PanicStrategy, RelocModel, Target, TargetOptions}; | ||
|
|
||
| /// A base target for Nintendo 3DS devices using the devkitARM toolchain. | ||
| /// | ||
| /// Requires the devkitARM toolchain for 3DS targets on the host system. | ||
|
|
||
| pub fn target() -> Target { | ||
| let mut pre_link_args = LinkArgs::new(); | ||
| pre_link_args.insert( | ||
| LinkerFlavor::Gcc, | ||
| vec![ | ||
| "-specs=3dsx.specs".to_string(), | ||
| "-g".to_string(), | ||
| "-march=armv6k".to_string(), | ||
| "-mtune=mpcore".to_string(), | ||
nagisa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "-mfloat-abi=hard".to_string(), | ||
| "-mtp=soft".to_string(), | ||
| ], | ||
| ); | ||
|
|
||
| Target { | ||
| llvm_target: "arm-none-eabihf".to_string(), | ||
|
||
| pointer_width: 32, | ||
| data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(), | ||
| arch: "arm".to_string(), | ||
|
|
||
| options: TargetOptions { | ||
| os: "horizon".to_string(), | ||
| env: "newlib".to_string(), | ||
| vendor: "nintendo".to_string(), | ||
| abi: "eabihf".to_string(), | ||
| linker_flavor: LinkerFlavor::Gcc, | ||
| cpu: "mpcore".to_string(), | ||
| executables: true, | ||
| families: vec!["unix".to_string()], | ||
| linker: Some("arm-none-eabi-gcc".to_string()), | ||
nagisa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| relocation_model: RelocModel::Static, | ||
| features: "+vfp2".to_string(), | ||
| pre_link_args, | ||
| exe_suffix: ".elf".to_string(), | ||
| panic_strategy: PanicStrategy::Abort, | ||
| ..Default::default() | ||
| }, | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.