# rswier/swieros

A tiny hand crafted CPU emulator, C compiler, and Operating System

Repository: https://github.com/rswier/swieros
Canonical: https://ross.abutalabs.com/products/swieros
Language: C
License: GPL-2.0
License Family: copyleft
Last push: 2020-12-16T19:15:56+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4340, "days_push": 2086, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1120, forks 123 (observed 2026-08-28T04:03:39.509548+00:00)

## What it is
Swieros is a tiny hand-crafted virtual CPU emulator paired with a fast C-subset compiler and a Unix-ish operating system kernel based on xv6. It supports user/supervisor modes and virtual memory, and is designed for fun, education, and research.

## Use cases
- emulate a small CPU with virtual memory
- learn how operating system kernels work
- study a tiny self-hosting C compiler
- run a Unix-like OS inside an emulator
- teach compiler and OS internals
- experiment with on-the-fly compile-and-go applications

## When to choose
- you want a compact, readable codebase for learning OS and compiler concepts
- you need a fast educational CPU emulator with virtual memory support
- you want to explore a self-hosting toolchain on a tiny system

## When to avoid
- you need a production-grade emulator or OS
- you require full C standard compliance or modern hardware emulation
- you need active development, frequent updates, or community support

## Facets
- artifact type: application
- maturity: maintenance
- function: interpreter, compiler, simulation
- domain: operating-systems, education, compilers, simulation
- platform: windows, cpp
- tags: cpu-emulator, xv6, educational, c-subset-compiler, virtual-memory, self-hosting, operating-system, linux

## Member repositories
- rswier/swieros (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:39.509548+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:41:07.174022+00:00, confidence not recorded.
  - readme: https://github.com/rswier/swieros (fetched 2026-08-28T04:03:39.509548+00:00, sha a435bc3153e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
