|
|
Subscribe / Log in / New account

A first look at Rust in the 6.1 kernel

A first look at Rust in the 6.1 kernel

Posted Oct 16, 2022 18:50 UTC (Sun) by ceplm (subscriber, #41334)
Parent article: A first look at Rust in the 6.1 kernel

Wasn’t the kernel quite GCC-centric? How does it work when GCC for Rust is still mostly non-existent?


to post comments

A first look at Rust in the 6.1 kernel

Posted Oct 17, 2022 8:42 UTC (Mon) by rsidd (subscriber, #2582) [Link]

The kernel has been buildable with LLVM clang for quite some time. Android, among others, builds it with clang. From the rust docs linked above, LLVM is recommended for building kernels with rust support: "Using GCC also works for some configurations, but it is very experimental at the moment."

But in any case, the question is of linking code compiled with gcc with objects compiled with clang or something else. In general, this is possible. The kernel may have special difficulties.


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