3 ms·
Even if the structure is not small enough, unless the address does not escape (which can be common for local objects), the compiler is free to split it up in it
by gpderetta 8y ago
Even if the structure is not small enough, unless the address does not escape (which can be common for local objects), the compiler is free to split it up in its constituents and only store some (or none) of its constituents in memory, which doesn't even need to be contiguous. I think this optimization is called scalar replacement of aggregates.
/pedantic