# ryanmjacobs/c

Compile and execute C "scripts" in one go!

Repository: https://github.com/ryanmjacobs/c
Canonical: https://ross.abutalabs.com/products/ryanmjacobs-c
Language: Shell
License: MIT
License Family: permissive
Topics: cli, tcc, clang, gcc, compiler, script, c, cpp
Last push: 2025-12-05T02:58:15+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 55, release rhythm 51, longevity 100
- inputs: {"age_days": 4202, "days_push": 271, "days_rel": 331, "gap_med": 0, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2182, forks 184 (observed 2026-08-28T04:06:23.366209+00:00)

## What it is
A small shell script that compiles and executes C (and C++) files in a single command, supporting shebang-style executable C scripts. It works with any compiler via $CC (gcc, clang, tcc) and includes a simple build cache.

## Use cases
- run c files like scripts
- compile and execute c in one command
- use c as a scripting language with shebang
- quickly test small c programs
- run c++ files without a makefile
- cache compiled c scripts for faster reruns

## When to choose
- you want to run small C/C++ programs without writing build files
- you want executable C scripts via shebang
- you want a lightweight single-file tool with no dependencies beyond a C compiler

## When to avoid
- you need full build management for multi-file projects (use make, cmake, etc.)
- you need debugging, IDE integration, or dependency management
- you need maximum performance for production builds

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, cli, developer-tools, caching
- domain: developer-tools, programming-languages, compilers
- platform: cli, cross-platform
- tags: c-scripts, shebang, shell-script, tcc, clang, gcc, cpp, command-line, linux, macos

## Member repositories
- ryanmjacobs/c (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.366209+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:48:17.683966+00:00, confidence not recorded.
  - readme: https://github.com/ryanmjacobs/c (fetched 2026-08-28T04:06:23.366209+00:00, sha c1dec6601b0b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
