Re:RISC-V OS using Rust: Filesystems
by pavehawk2007 on Tuesday May 12, 2020 @01:24PM
(#23156716)
I think you'll get something different for each. The purpose of mine is to explore the Rust programming language, but more specifically on the RISC-V architecture. Rust "recently" became out-of-the-box for RISC-V, which has opened up many more avenues for exploration.
As a note, I believe os.phil-opp.com is using the AMD/Intel architecture.
What do you mean by out of the box for RISC V?
Re:RISC-V OS using Rust: Filesystems
by pavehawk2007 on Tuesday May 12, 2020 @01:48PM
(#23157115)
Originally, I required a GNU toolchain from the RISC-V organization for both assembling and linking. Now, I don't need any external tools (except QEMU to run it). Everything you need can be downloaded using Rust's configuration tool rustup for RISC-V. If you take a look at my github, you'll see that I added a .cargo/config file that will build AND run the operating system using cargo.
Wait, we can now host a whole OS w/o directly requiring a C compiler?! I mean Rust still requires one to build clang/llvm, but maybe someday when alternative backends land.
Re:RISC-V OS using Rust: Filesystems
by steveklabnik on Wednesday May 13, 2020 @08:28AM
(#23166166)
There are several projects that do this, yes. They're generally not production ready, but it's absolutely possible.
Any thoughts on this[1] walkthrough in comparison? This one looks more explicitly up to date.
[1] https://os.phil-opp.com/