Project Oberon System Ported to RISC-V Architecture
Niklaus Wirth's legendary operating system meets modern hardware.
1Oberon'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.
2From 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.
3Hardware/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.
4Role 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.
5Emulation 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.
6Design 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.
7Educational 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.
8Future 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.
Original article: Hacker News: Front Page — Project Oberon Sistemi RISC-V'ye Taşındı