rustc +esp-master test.rs --target esp32.json --emit llvm-ir
Last active
May 29, 2024 10:17
-
-
Save MabezDev/e7fc85a42d0c22e2bd0b902a4f3f7c9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"arch": "xtensa", | |
"cpu": "generic", | |
"crt-objects-fallback": "false", | |
"data-layout": "e-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32", | |
"emit-debug-gdb-scripts": false, | |
"is-builtin": false, | |
"linker": "xtensa-esp32-elf-gcc", | |
"linker-flavor": "gnu-cc", | |
"llvm-target": "xtensa-none-elf", | |
"max-atomic-width": 32, | |
"metadata": { | |
"description": "Xtensa ESP32", | |
"host_tools": false, | |
"std": false, | |
"tier": 3 | |
}, | |
"panic-strategy": "abort", | |
"relocation-model": "static", | |
"target-pointer-width": "32" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![no_std] | |
#![no_core] | |
#![no_main] | |
#![feature(no_core)] | |
#![feature(lang_items)] | |
#[lang = "sized"] | |
trait Sized {} | |
#[no_mangle] | |
fn hello_xtensa() -> i32 { | |
1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment