# ShivamSarodia/ShivyC

C compiler created in Python.

Repository: https://github.com/ShivamSarodia/ShivyC
Canonical: https://ross.abutalabs.com/products/shivyc
Language: Python
License: MIT
License Family: permissive
Topics: python, compiler, c
Last push: 2025-07-20T03:57:09+00:00

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

## Adoption (not part of the score)
Stars 1064, forks 85 (observed 2026-08-28T04:03:26.441950+00:00)

## What it is
ShivyC is a hobby C compiler written in Python 3 that supports a subset of the C11 standard and generates x86-64 Linux binaries with some optimizations. It also produces helpful compile-time error messages and is distributed as a pip-installable package.

## Use cases
- compile simple C programs to x86-64 Linux binaries
- learn how compilers work by reading a small Python implementation
- study lexer, parser, and IL generation techniques
- experiment with compiler optimizations and error message design
- compile example programs like a trie implementation in C

## When to choose
- you want a readable, educational C compiler codebase written in Python
- you need to compile a small subset of C11 on x86-64 Linux
- you are teaching or learning compiler construction
- you want a lightweight compiler with only Python 3 as a dependency

## When to avoid
- you need a production-grade compiler with full C11/C17 support
- you target platforms other than x86-64 Linux
- you need a full C preprocessor with macros
- compilation speed or standards compliance is critical

## Facets
- artifact type: cli-tool
- maturity: experimental
- function: compiler, parser, developer-tools
- domain: compilers, programming-languages, developer-tools, parsers
- platform: python, cli
- tags: c-compiler, hobby-project, x86-64, c11-subset, educational, linux, docker

## Member repositories
- ShivamSarodia/ShivyC (main) score 37

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:26.441950+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:55:47.094288+00:00, confidence not recorded.
  - readme: https://github.com/ShivamSarodia/ShivyC (fetched 2026-08-28T04:03:26.441950+00:00, sha 3722080edbd8)
  - registry_pypi: https://pypi.org/pypi/shivyc/json (fetched 2026-08-29T12:57:55.692536+00:00, sha 79238507bef0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
