Linux 7.0 Readying Improvement For Rust + LTO Kernel Builds
phoronix.com·1d·
Discuss: r/linux
🔧LLVM
Preview
Report Post

LINUX KERNEL

Alice Ryhl of Google has been working on an improvement to the Linux kernel code for inlining C helpers into Rust when making use of a Link-Time Optimized (LTO) kernel build. At least some of the patches are queued up for merging in the upcoming Linux 6.20~7.0 cycle for helping those enabling the Rust kernel support and also making use of the LLVM/Clang compiler’s LTO capabilities for greater performance.

This work to inline C helpers into Rust when using LTO involves adding a "__rust_helper" annotation to every Rust helper within the kernel. This "__rust_helper" is needed since C helpers cannot be inlined into Rust when using LTO because LLVM detects slightly different options on the code gener…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help