Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Stop Memsetting Structures. Parent comment
The compiler could also determine that &a.x)[1] is undefined behavior in C (reading past the end of an object), and take advantage of that.
The way to check that is by disassembling the code, and even that doesn’t say what a C compiler should do, only what these particular compilers do.
The compiler could also determine that &a.x)[1] is undefined behavior in C (reading past the end of an object), and take advantage of that.
The way to check that is by disassembling the code, and even that doesn’t say what a C compiler should do, only what these particular compilers do.