struct address = first element address is relied on for pseudo-OO
struct address = first element address is relied on for pseudo-OO
Posted Sep 19, 2024 11:54 UTC (Thu) by segher (subscriber, #109337)In reply to: struct address = first element address is relied on for pseudo-OO by smcv
Parent article: Kernel developers at Cauldron
It is required for that yes, and for many other things. It is hard to make a usefully defined struct layout without such guarantees, and this isn’t even considering the multiple full percents of performance loss reordering like this would cause!