Commit 2021aa0e authored by Per's avatar Per

rust no_std no debug

parent 4427b856
......@@ -12,5 +12,5 @@ panic = "abort"
[profile.release]
panic = "abort"
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size on Flash
# debug = true # symbols are nice and they don't increase the size on Flash
lto = true # better optimizations
\ No newline at end of file
......@@ -6,6 +6,7 @@
use core::intrinsics;
use core::panic::PanicInfo;
use core::ptr;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
......@@ -14,7 +15,7 @@ fn panic(_info: &PanicInfo) -> ! {
#[inline(never)]
fn f1() -> u32 {
0
unsafe { ptr::read_volatile(&0) }
}
#[no_mangle]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment