Anmol Gautam
Anmol Gautam

Reputation: 1020

make a bootable hello world program in rust

I have recently come across Rust and found that one can easily write system code in Rust without touching assembly.
I just want to make a bootable hello world program out of my hello.rs code:

fn main() {
    println!("Hello World");
}

Is there a way to make this Rust code bootable?

Upvotes: 0

Views: 880

Answers (1)

Grégory OBANOS
Grégory OBANOS

Reputation: 1051

There is an blog about Writing an OS in Rust, where first steps are about booting and printing some stuff to screen using only Rust.

It's an advanced topic, so I wouldn't recommand starting with writing an OS, execpt if you want to discover how an OS work.

Upvotes: 9

Related Questions