# vnmakarov/mir

A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR

Repository: https://github.com/vnmakarov/mir
Canonical: https://ross.abutalabs.com/products/mir
Language: C
License: MIT
License Family: permissive
Topics: jit-compiler, compiler, interpreter, intermediate-representation, c, x86-64, aarch64, ppc64, s390x, m1, linux, macos, apple, riscv64
Last push: 2026-06-19T20:02:13+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 8, longevity 100
- inputs: {"age_days": 2711, "days_push": 75, "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 2647, forks 179 (observed 2026-08-28T04:07:06.810929+00:00)

## What it is
MIR is a lightweight JIT compiler project built around a strongly typed Medium Internal Representation, with a C11 JIT compiler and interpreter included. It is designed as a foundation for implementing fast, lightweight JITs for dynamic languages such as Ruby.

## Use cases
- build a lightweight JIT compiler for a dynamic language
- compile and run C code at runtime with a JIT
- embed an interpreter with JIT capabilities in a language runtime
- experiment with intermediate representations for code generation
- generate machine code for x86-64, aarch64, ppc64, s390x, or riscv64

## When to choose
- you need a small, embeddable JIT rather than a heavyweight VM like LLVM
- you are building a JIT for a scripting language like Ruby or MRuby
- you want to JIT-compile C code at runtime on multiple CPU architectures

## When to avoid
- you need maximum peak performance from aggressive optimizations
- you require guaranteed correctness beyond the tested platforms and test suites
- you need a mature, widely production-hardened JIT infrastructure

## Facets
- artifact type: library
- maturity: active
- function: compiler, interpreter, developer-tools
- domain: compilers, programming-languages, developer-tools, performance
- platform: cpp, c
- tags: jit-compiler, intermediate-representation, c11, x86-64, aarch64, riscv64, ppc64, s390x, lightweight, linux, macos

## Member repositories
- vnmakarov/mir (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:06.810929+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-30T02:18:57.905486+00:00, confidence not recorded.
  - readme: https://github.com/vnmakarov/mir (fetched 2026-08-28T04:07:06.810929+00:00, sha 0232d4dfb54a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
