Hacker News new | ask | show | jobs
by fasquoika 3354 days ago
The thing about undefined behavior is that it means the compiler can do whatever it wants. Most of the time, since the compiler wants to create efficient code, it can just assume that invalid values won't occur the same way a type system can allow a compiler to know that invalid values can't occur.

EDIT: More information here http://blog.llvm.org/2011/05/what-every-c-programmer-should-...

1 comments

Appreciate the link.