Re:So You Want to Rust the Linux Kernel?
by osigurdson on Monday October 11, 2021 @09:20AM
(#28828014)
Rust uses LLVM so optimizations occur at the AST level. Therefore it should be able to take advantage of the same optimizations as Clang C++ which uses the same approach.
[ Parent
| on HN ]
Re:So You Want to Rust the Linux Kernel?
by steveklabnik on Monday October 11, 2021 @10:13AM
(#28828522)
They happen at a lower level than an AST, but you're right that any front end can in theory generate the same IR and therefore get the same optimizations. The trick is if the language semantics allow for it; this bites both ways.