News for hackers. Stuff that matters.
Re:Comparing Pythagorean triples in C++, D, and Rust by vlovich123 on Monday December 31, 2018 @02:12PM (#18796312)
Not mentioned in the post but I'm assuming you're using O0 for "debug"? It may be worthwhile to reconsider as O0 is now considered to be a tool for compiler authors & regular people should use -Og (or opt-level 1 for Rust) as a way of generating builds that have performance optimizations applied that don't impact debugging.
Re:Comparing Pythagorean triples in C++, D, and Rust by ZirconiumX on Monday December 31, 2018 @09:16PM (#18798499)
I've usually found -Og to inline functions or optimise out variables I needed to investigate. It's happened often enough that I just use printf in release mode.