Article 7026C Writing an operating system kernel from scratch in Zig

Writing an operating system kernel from scratch in Zig

by
Thom Holwerda
from OSnews on (#7026C)

I recently implemented a minimal proof of concept time-sharing operating system kernel on RISC-V. In this post, I'll share the details of how this prototype works. The target audience is anyone looking to understand low-level system software, drivers, system calls, etc., and I hope this will be especially useful to students of system software and computer architecture.

[...]

Finally, to do things differently here, I implemented this exercise in Zig, rather than traditional C. In addition to being an interesting experiment, I believe Zig makes this experiment much more easily reproducible on your machine, as it's very easy to set up and does not require any installation (which could otherwise be slightly messy when cross-compiling to RISC-V).

Uros Popovic

This is not the first, and certainly not the last, operating system implemented from scratch as a teaching exercise, both for the creator itself, as well as for others wanting to follow along. This time it's developed for RISC-V, and in an interesting twist, programmed in Zig (no Rust for once!).

External Content
Source RSS or Atom Feed
Feed Location http://www.osnews.com/files/recent.xml
Feed Title OSnews
Feed Link https://www.osnews.com/
Reply 0 comments