# Project Oberon System Ported to RISC-V Architecture

Niklaus Wirth's legendary operating system meets modern hardware.

- **Source:** [Hacker News: Front Page](https://brifing.si/source/b07aa772-b1a0-4a76-aa18-719c6f9e2dde)
- **Published:** 2026-08-09
- **Topic:** [Software & Engineering](https://brifing.si/c/engineering)
- **Original article:** <https://github.com/rochus-keller/OberonSystem/tree/op2-rv32>
- **On Brifing:** https://brifing.si/s/659f8906-704a-4edc-9cca-fb8caa3fced0

## Oberon's Historical Legacy

Developed between 1986-1992 by Niklaus Wirth and Jürg Gutknecht at ETH Zürich, Project Oberon was an integrated system including OS, compiler, programming language, and text editors. The 2013 revised book documents all system details. Wirth's post-retirement work resulted in Oberon-07 as the most simplified version of the language.

## From RISC-5 to RISC-V

The original system ran on National Semiconductor NS32032 processor. Instead of commercial architectures, Wirth implemented his own RISC-5 processor on FPGA. This new project migrates the system to RISC-V (RV32) architecture. RISC-V's regular 32-bit ISA and hardware independence align with Oberon's philosophy.

## Hardware/Software Integration

Oberon System relies on a minimal hardware/software contract at memory mapping and instruction set level. This enables easy portability across architectures. Not requiring MMU allows it to run on modern microcontrollers like ESP32. Development boards like Olimex ESP32-P4-PC provide suitable targets.

## Role of OP2 Compiler

The project uses OP2 compiler from ETH Oberon heritage instead of Wirth's original OR compiler. OP2's frontend/backend separation supports multiple architectures including SPARC, MIPS, i386, ARMv7 and now RV32. This approach proved successful in porting System 3 to Raspberry Pi.

## Emulation Phase

Current implementation runs on RISC-V emulator. This maintains compatibility with reference code from the book while simplifying debugging. Emulation abstracts hardware dependencies, enhancing portability. Next phase involves porting to physical ESP32-based boards.

## Design Philosophy Continuity

Wirth's 'simplicity and regularity' principles guide both software and hardware. Components written in assembly in 1992 are now expressible in Oberon. Reverting to 25-year-old Ceres version reduces complexity while preserving documentation integrity.

## Educational Value

Project Oberon remains a rare resource for learning all layers of OS design. The book explains theoretical foundations along with source code of a system that runs on 1MB RAM. Porting to RISC-V makes this knowledge accessible to modern students.

## Future Potential

RISC-V's open architecture combined with Oberon's minimalism opens new possibilities for embedded systems. This combination could offer performance advantages in resource-constrained environments like IoT devices. The project demonstrates how historical systems can be revitalized with modern technologies.

## Sources covering this story

- https://github.com/rochus-keller/OberonSystem/tree/op2-rv32 — 

---

_Summary written by Brifing from the original reporting. Copyright in the original article belongs to its publisher; read the full piece at the link above._
