Re:Bounded Integer: Header-only C++ library replaces integer...
by eloff on Sunday September 29, 2019 @01:50PM
(#21108479)
Why not use a debug release build. Like O1 with debug symbols.
[ Parent
| on HN ]
Re:Bounded Integer: Header-only C++ library replaces integer...
by OskarS on Sunday September 29, 2019 @02:30PM
(#21108754)
We absolutely do, but it’s significantly harder to debug. Functions are inlined, variables are eliminated, loops unrolled, etc.
But yeah, very often it’s basically the only option, running an optimized build with debug symbols. This is why it’s such a problem with C++: debug builds are frequently pointless because the performance is so bad, which makes debugging a lot harder.
Re:Bounded Integer: Header-only C++ library replaces integer...
by eloff on Sunday September 29, 2019 @03:13PM
(#21109047)
Yeah that makes sense. There's no good alternative in C++, thanks to the mess created by all the zero-cost abstractions that are very much not zero-cost without a the optimizations of a release build.