All Projects → TinyCC → Tinycc

TinyCC / Tinycc

Licence: lgpl-2.1
Unofficial mirror of mob development branch

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Tinycc

Minijit
A basic x86-64 JIT compiler written from scratch in stock Python
Stars: ✭ 185 (-76.4%)
Mutual labels:  compiler, jit
Lightbeam
Lightbeam has moved and now lives in the Wasmtime repository!
Stars: ✭ 253 (-67.73%)
Mutual labels:  compiler, jit
Cranelift
Cranelift code generator
Stars: ✭ 2,485 (+216.96%)
Mutual labels:  compiler, jit
Jphp
JPHP - an implementation of PHP on Java VM
Stars: ✭ 1,665 (+112.37%)
Mutual labels:  compiler, jit
Ilgpu
ILGPU JIT Compiler for high-performance .Net GPU programs
Stars: ✭ 374 (-52.3%)
Mutual labels:  compiler, jit
C
Compile and execute C "scripts" in one go!
Stars: ✭ 1,920 (+144.9%)
Mutual labels:  compiler, tcc
Asmjit
Machine code generation for C++
Stars: ✭ 2,874 (+266.58%)
Mutual labels:  compiler, jit
Leekscript V2
A dynamically typed, compiled just-in-time programming language used in Leek Wars' AIs
Stars: ✭ 46 (-94.13%)
Mutual labels:  compiler, jit
Dora
Dora VM
Stars: ✭ 371 (-52.68%)
Mutual labels:  compiler, jit
Numpile
A tiny 1000 line LLVM-based numeric specializer for scientific Python code.
Stars: ✭ 341 (-56.51%)
Mutual labels:  compiler, jit
Nanojit
NanoJIT is a small, cross-platform C++ library that emits machine code.
Stars: ✭ 101 (-87.12%)
Mutual labels:  compiler, jit
Dynarmic
An ARM dynamic recompiler.
Stars: ✭ 475 (-39.41%)
Mutual labels:  compiler, jit
Jit Compiler
JIT compiler in Go
Stars: ✭ 70 (-91.07%)
Mutual labels:  compiler, jit
Jitfromscratch
Example project from my talks in the LLVM Social Berlin and C++ User Group
Stars: ✭ 158 (-79.85%)
Mutual labels:  compiler, jit
B2dpipe
2D Pipeline Compiler.
Stars: ✭ 51 (-93.49%)
Mutual labels:  compiler, jit
Openj9
Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Stars: ✭ 2,802 (+257.4%)
Mutual labels:  compiler, jit
Llvm Tutorial Standalone
DEPRECATED (Use: https://github.com/llvm-hs/llvm-hs-kaleidoscope )
Stars: ✭ 38 (-95.15%)
Mutual labels:  compiler, jit
Nativejit
A C++ expression -> x64 JIT
Stars: ✭ 999 (+27.42%)
Mutual labels:  compiler, jit
Enso Archive
Looking for Enso, the visual programming language? ➡️ https://github.com/enso-org/enso
Stars: ✭ 305 (-61.1%)
Mutual labels:  compiler, jit
Enso
Hybrid visual and textual functional programming.
Stars: ✭ 5,238 (+568.11%)
Mutual labels:  compiler, jit

Tiny C Compiler - C Scripting Everywhere - The Smallest ANSI C compiler

Features:

  • SMALL! You can compile and execute C code everywhere, for example on rescue disks.

  • FAST! tcc generates optimized x86 code. No byte code overhead. Compile, assemble and link about 7 times faster than 'gcc -O0'.

  • UNLIMITED! Any C dynamic library can be used directly. TCC is heading toward full ISOC99 compliance. TCC can of course compile itself.

  • SAFE! tcc includes an optional memory and bound checker. Bound checked code can be mixed freely with standard code.

  • Compile and execute C source directly. No linking or assembly necessary. Full C preprocessor included.

  • C script supported : just add '#!/usr/local/bin/tcc -run' at the first line of your C source, and execute it directly from the command line.

Documentation:

  1. Installation on a i386/x86_64/arm/aarch64/riscv64 Linux/macOS/FreeBSD/NetBSD/OpenBSD hosts.

    ./configure make make test make install

    Notes: For FreeBSD, NetBSD and OpenBSD, gmake should be used instead of make. For Windows read tcc-win32.txt.

makeinfo must be installed to compile the doc. By default, tcc is installed in /usr/local/bin. ./configure --help shows configuration options.

  1. Introduction

We assume here that you know ANSI C. Look at the example ex1.c to know what the programs look like.

The include file <tcclib.h> can be used if you want a small basic libc include support (especially useful for floppy disks). Of course, you can also use standard headers, although they are slower to compile.

You can begin your C script with '#!/usr/local/bin/tcc -run' on the first line and set its execute bits (chmod a+x your_script). Then, you can launch the C code as a shell or perl script :-) The command line arguments are put in 'argc' and 'argv' of the main functions, as in ANSI C.

  1. Examples

ex1.c: simplest example (hello world). Can also be launched directly as a script: './ex1.c'.

ex2.c: more complicated example: find a number with the four operations given a list of numbers (benchmark).

ex3.c: compute fibonacci numbers (benchmark).

ex4.c: more complicated: X11 program. Very complicated test in fact because standard headers are being used ! As for ex1.c, can also be launched directly as a script: './ex4.c'.

ex5.c: 'hello world' with standard glibc headers.

tcc.c: TCC can of course compile itself. Used to check the code generator.

tcctest.c: auto test for TCC which tests many subtle possible bugs. Used when doing 'make test'.

  1. Full Documentation

Please read tcc-doc.html to have all the features of TCC.

Additional information is available for the Windows port in tcc-win32.txt.

License:

TCC is distributed under the GNU Lesser General Public License (see COPYING file).

Fabrice Bellard.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].