OS programming with Rust

Hello,
can Rust use syscall in Linux or macOS?
I wanted to system programming with Rust in Windows and Linux and macOS.
can it be like C?
use syscall integrate with OS ?
can I use Assembly in Rust?

You can certainly use assembly and syscalls. Take a look at this file from the syscall crate to see how it's done. You may need nightly for this.

1 Like

Rust is a pretty low-level language like C.
They've even written an Operating System in it called Redox:
https://www.redox-os.org

https://docs.rs/libc/0.2.67/libc/fn.syscall.html

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.