Re:Optimizing Rust Struct Size
by phkahler on Saturday April 15, 2017 @10:28PM
(#14124036)
>> C supports bit fields in structs, but that feature is seldom used.
Every micro controller I've ever worked with has header files defining bit fields for hardware registers. It's a matter of what level you're writing for. I would expect Linux to contain tons of these.
Every micro controller I've ever worked with has header files defining bit fields for hardware registers. It's a matter of what level you're writing for. I would expect Linux to contain tons of these.