News for hackers. Stuff that matters.
Re:Rust's integer intrinsics are impressive by thegeomaster on Saturday June 10, 2017 @06:42AM (#14526878)
GCC, for example, allows a "-fomit-frame-pointer" [1] optimization option which would get rid of this. I'm not sure why this isn't done by default in optimized builds. Maybe it has something to do with stack unwinding: if the functions panics for some reason, or triggers a CPU fault, there's no way to get the correct backtrace if you don't have the frame pointers on the stack.

[1]: https://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/Optimize-Option...

Re:Rust's integer intrinsics are impressive by jannic on Saturday June 10, 2017 @07:20AM (#14526957)
rustc will omit the frame pointer if you add "-C debuginfo=0".

  example::count:
        popcnt  eax, edi
        ret
Re:Rust's integer intrinsics are impressive by c3833174 on Saturday June 10, 2017 @08:47AM (#14527133)
IIRC it's needed on x86 but not on x86_64