Skip to content
プロジェクト

概要

小さくポータブルなCコンパイラ

言語・ランタイム

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

CJIT logo

CJIT is a TinyCC-powered C runner and lightweight compiler frontend.

It can:

  • compile and execute one or more C inputs directly from memory
  • compile one source file to an object
  • build an executable without running it
  • inspect runtime configuration and extract bundled runtime assets
  • extract tar.gz archives, or use cjit-ar/cjit -ar for archive operations

CJIT is designed for fast iteration, scripting-style execution, and small deployment footprints.

Homepage at Dyne.org/CJIT.

🚀 Quick start

Download the latest CJIT release for your system.

Launch CJIT from a terminal console command prompt: one can mix c source files and dynamic libraries as arguments:

./cjit.exe mysource.c mylib.dll

Take a tour with the CJIT tutorial.

Basic usage

Run one source file:

./cjit hello.c

Compile one source file to an object:

./cjit -c hello.c

Build an executable without running it:

./cjit -o hello hello.c

Pass arguments to the compiled program:

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

Inspect the runtime configuration:

./cjit -v

Extract bundled runtime assets or a tar.gz archive:

./cjit --xass /tmp/cjit-assets
./cjit --xtgz bundle.tar.gz

Build and test

The bundled Linux build used by maintainers is:

make linux CC=clang
make check

make check-ci omits the Linux dmon smoke test; make check includes it for a Linux target. make check-unit runs deterministic C units, while the Bats suites exercise public CLI and platform behavior. A system-libtcc build uses make meson and requires the distribution tcc, libtcc-dev, Meson, and Ninja packages; it cannot execute the in-memory and embedded-asset routes that the bundled build supports. make coverage CC=clang writes the maintained Linux coverage summary to coverage/maintained.txt, and make debug-asan CC=clang builds the sanitizer variant.

What CJIT Is Not

CJIT is not a tracing or adaptive JIT in the VM sense. It does not interpret first and optimize hot paths later.

CJIT uses TinyCC to compile C quickly, often in memory, and can execute the resulting code immediately.

📦 Download the demo

The CJIT demo package comes with running examples

🪟 On Windows

iex ((New-Object System.Net.WebClient).DownloadString('https://dyne.org/cjit/demo'))

🍎 / 🐧 On Apple/OSX and GNU/Linux

curl -sL https://dyne.org/cjit/demo.sh | bash

📖 and follow the The CJIT tutorial

Manpage

When installed on UNIX systems, CJIT(1) has a manpage! try man cjit after installing.

It is also visible online at dyne.org/docs/cjit.

This manual gives you insights about the CJIT command-line options.

The CJIT's Frequently Asked Questions page may provide more information.

📑 Acknowledgements

CJIT is copyright (C) 2024-2026 by the Dyne.org foundation. Designed, written and maintained by Jaromil. Free and open source (GNU General Public License v3).

The TinyCC core component is copyright (C) 2001-2004 by Fabrice Bellard. TinyCC is also free and open source (GNU Lesser General Public License).

The CJIT manual offers more information on CJIT licensing.

software by Dyne.org

関連プロジェクトを探す

読み込み中…