Message from C, C++ talks

July 2019

— Cause the compiler does crazy things when optimizing, and sometimes it can eliminate calls you want to debug

Message permanent page

— For debugging there is Og

— Step debugging. I do it time to time

— Agree

— 

I dont find debugging with assembly useful tbh, like it doesn’t tell you much unless your one line is like 50 operations

— tho i do occasionally miss -g and just debug in assembly from laziness

— There's an optimization in clang that can transform O(n) code in O(1) code

— Uh no?

— Unless your code does nothing in O(n)

— Then might as well O(n^n) to O(1)

— It's for special cases, not always, obviously

— Im quite sure O(n) to O(1) isn’t possible

— Summation and popcnt are famous examples

— Yeah

— Eh do you consider them O(n)