[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
|
|
Subscribe / Log in / New account

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!


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds