rswier/swieros
FreeA tiny hand crafted CPU emulator, C compiler, and Operating System
FreeFree tier
About rswier/swieros
A tiny and fast Unix-ish kernel (based on xv6), compiler, and userland for fun, education, and research. It features a virtual CPU with full user/supervisor and virtual memory support, fast enough to support self-emulation. Includes a fast C-subset compiler allowing on-the-fly compile-and-go of all applications. Provides network clients and servers, remote OpenGL, GUI applications, and many other nifty features. Runs under Windows or Linux.
Key Features
Virtual CPU with full user/supervisor and virtual memory support
Fast C-subset compiler with on-the-fly compile-and-go
Self-emulation capable (can run inside itself)
Network clients and servers
Remote OpenGL and GUI applications
Runs on Windows and Linux
Based on xv6 Unix-ish kernel
Pros & Cons
Pros
- Open source with GPL-2.0 license
- Tiny and fast implementation
- Supports self-emulation
- Comprehensive set of features in a small codebase
- Comes with a step-by-step tutorial
Cons
- Not intended for production use
- C compiler supports only a subset of C
- Limited to a specific virtual CPU architecture
- Documentation may be limited to README and tutorial file
Best For
Education and learning OS/compiler conceptsResearch in operating systemsFun and hobbyist experimentation
FAQ
What is swieros?
Swieros is a tiny and fast Unix-ish kernel (based on xv6), compiler, and userland for fun, education, and research. It includes a virtual CPU with full user/supervisor and virtual memory support, a fast C-subset compiler, and various applications.
What license is swieros released under?
The swieros project is licensed under GPL-2.0.
On which platforms does swieros run?
Swieros runs under Windows or Linux.
Does swieros include a tutorial?
Yes, there is a 00README.txt file with full details and a step-by-step walkthrough tutorial.