CJIT

2 min read Original article ↗

CJITC, Just in Time!

A tiny, portable C runner and compiler powered by TinyCC. Write C, run it immediately, or produce objects and executables without setting up a full toolchain.

CJIT mascot

Run C immediately

Compile C in memory and execute it directly for fast experiments, scripts, and prototypes.

Build useful artifacts

Compile one source file to an object or link an executable without running the program.

Bring native libraries

Load shared libraries and make their exported symbols available to your C program.

Carry one small tool

CJIT bundles TinyCC, its headers, and runtime assets into a portable command-line executable.

Start in seconds

Download the latest release for your platform, then run a C source file:

Pass arguments to the compiled program after --:

sh

cjit app.c -- --name cjit --verbose

Or produce a file without executing it:

sh

cjit -c hello.c
cjit -o hello hello.c

What CJIT is

CJIT is a TinyCC-powered C runner and lightweight compiler frontend. It prioritizes quick iteration and a small deployment footprint across Windows, macOS, and GNU/Linux.

CJIT is not a tracing or adaptive JIT in the virtual-machine sense. It compiles C quickly, often in memory, and can execute the resulting native code immediately.

Explore

  • Build visual programs in Graphics.
  • Work with audio in Sound.
  • Read and write files in Filesystem.
  • Create terminal interfaces in Terminal UI.
  • Check platform details and common questions in the FAQ.

CJIT is free software maintained by Jaromil and the Dyne.org community.