Embedded in Academia : A Guide to Undefined Behavior in C and C++, Part 1

Embedded in Academia : A Guide to Undefined Behavior in C and C++, Part 1

瀏覽:1483
日期:2024-08-31
Thought-provoking post, thank you. But I’m puzzled: what type of optimization can infer the indeterminacy of stupid() or the null-pointer check? I’ve not heard of it. Wouldn’t it be better for the compiler to decide what to do based on what knowledge it h...看更多