Commit d5870ac1 authored by Per Lindgren's avatar Per Lindgren

no debug

parent ed3fe11d
......@@ -26,6 +26,19 @@
"kind": "build",
"isDefault": true
}
},
{
"type": "cargo",
"label": "cargo clean",
"command": "cargo",
"args": [
"clean"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
\ No newline at end of file
......@@ -13,5 +13,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
......@@ -5,8 +5,20 @@ extern crate panic_abort;
use core::ptr;
struct C {}
impl C {
#[inline(never)]
fn call() {
unsafe {
ptr::read_volatile(&0);
}
}
}
#[inline(never)]
fn f1() -> u32 {
C::call();
unsafe { ptr::read_volatile(&0) }
}
......@@ -16,3 +28,4 @@ fn main() {
}
// cargo rustc --release -- -C linker=true --emit=llvm-ir,llvm-bc
// opt -load build/callgirl/libCallgirlPass.so -print-callgirl rust/target/release/deps/rust-*.ll -o dummy.ll
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