News for hackers. Stuff that matters.
Re:Rust's integer intrinsics are impressive by Flow on Saturday June 10, 2017 @08:46AM (#14527131)
Yes, I get the reserve space for local variables and so on.

But this is a leaf-function and one that has no register trashing or temporary variables. Could this be inlined later on via link-time optimizations? Will the linker then remove that function prologue and epilogue?

Re:Rust's integer intrinsics are impressive by elgenie on Saturday June 10, 2017 @09:52AM (#14527306)
Yeah, it can certainly be inlined or optimized away with various compiler options. However, as you might surmise, debugging without stack frames becomes rather difficult as functions corresponding to source code disappear into a goo of assembly.

The example with slightly different options (as mentioned in another comment) gives what you're looking for: https://godbolt.org/g/GlkEQK

Re:Rust's integer intrinsics are impressive by pja on Saturday June 10, 2017 @11:00AM (#14527575)
gcc has the -fomit-leaf-frame-pointer option at least.