News for hackers. Stuff that matters.
Re:Everything in C is undefined behavior by leni536 on Friday May 22, 2026 @04:28AM (#48233371)
Implementation-defined without further constraining the behavior is not much better than undefined.

Defining it to always error would add overhead even for proper aligned access on x86, as the generated code would need to explicitly check in many cases.

Re:Everything in C is undefined behavior by eru on Monday May 25, 2026 @12:07AM (#48263306)
> Implementation-defined without further constraining the behavior is not much better than undefined.

No, it's a lot better. Because implementations have to define it.