Re:So You Want to Rust the Linux Kernel?
by lenkite on Monday October 11, 2021 @11:56AM
(#28829752)
There are compiler directives for packed structs in C++. struct __attribute__ ((packed))
[ Parent
| on HN ]
Re:So You Want to Rust the Linux Kernel?
by steveklabnik on Monday October 11, 2021 @12:32PM
(#28830115)
Rust also has a packed attribute; this is something different. The re-ordering still includes padding, whereas packed removes the padding.