65
submitted 2 months ago* (last edited 2 months ago) by plinky@hexbear.net to c/technology@hexbear.net
you are viewing a single comment's thread
view the rest of the comments
[-] CupcakeOfSpice@hexbear.net 2 points 2 months ago

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.

[-] Llituro@hexbear.net 2 points 2 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.

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

technology

23215 readers
146 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 4 years ago
MODERATORS