Re:Rust support in the Linux kernel
by einpoklum on Thursday December 09, 2021 @02:50AM
(#29494898)
With modern compilers, there is no such thing as what you program is what you get.
[ Parent
| on HN ]
Re:Rust support in the Linux kernel
by randomswede on Thursday December 09, 2021 @07:13AM
(#29496480)
As long as you stay away from compiler-dependent, platform-dependent, and/or undefined behaviour, you should be fine. Main problem is that a surprising ab´mount of "looks normal" code is actually UB.
You would be "fine", but the compiler will optimize away alot of your code, and will rearrange a lot of the rest. I wasn't even talking about platform-dependent or undefined behavior.