News for hackers. Stuff that matters.
Re:Undefined behavior in C is a reading error by fooker on Thursday May 20, 2021 @06:33PM (#27228266)
It’s not useless. The assumption is not false if the program doesn’t have undefined behavior. The assumption allows the code to be a few times faster. To disallow this assumption would inhibit these optimizations.
Re:Undefined behavior in C is a reading error by vyodaiken on Friday May 21, 2021 @06:38AM (#27232381)
a) the assumption is not false if it is not false! b) the speedup is not shown anywhere
Re:Undefined behavior in C is a reading error by fooker on Sunday May 23, 2021 @02:03PM (#27257099)
The speedup is more or less the difference between O1 and O3 optimization levels.