dyne/cjit
Acerca de
Compilador de C pequeño y portable
Lenguajes y entornos de ejecuciónCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalCJIT 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 -arfor 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.
Explorar proyectos relacionados
Cargando…
