this post was submitted on 23 Jul 2024
65 points (98.5% liked)

technology

23303 readers
17 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 3 months ago (1 children)

I don't remember exactly how, but you can specify a compiler using arcane magic I don't fully understand to compile for a baremetal target. Some people do full OS dev in just Rust, though usually C and ASM are involved to bootstrap. It can be somewhat arcane, though.

[โ€“] [email protected] 2 points 3 months ago

There's a blog about writing a micro kernel in Rust that details how to compile for bare metal. It's actually possible to entirely avoid C, although a bit annoying to be sure.