← All projects
Project record1 mention
Originally shared on Hacker News

Single-file self-hosting RISC-V operating system

This operating system is written entirely in one text file, which contains in order a readme, RISC-V assembly boot code, and the rest of the system. The initial boot code is compiled with a basic RISC-V assembler and concatenated with the text file itself; when run, the boot code compiles the rest of the file, including higher-level language compilers that the rest of the system is written in. The goal is to create something from as little as possible, needing only a very basic RISC-V assembler and a computer or emulator to get started.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Single-file self-hosting RISC-V operating system

    This operating system is written entirely in one text file, which contains in order a readme, RISC-V assembly boot code, and the rest of the system. The initial boot code is compiled with a basic RISC-V assembler and concatenated with the text file itself; when run, the boot code compiles the rest of the file, including higher-level language compilers that the rest of the system is written in. The goal is to create something from as little as possible, needing only a very basic RISC-V assembler and a computer or emulator to get started.

    Posted by @robalni · Original source ↗

    Source text · @robalni · · Source ↗

    I just started building an operating system that will be written entirely in one text file. This text file includes in order: a readme, a RISC-V assembly boot code, then the rest.