Tiny C Compiler

Implementation of programming language C

Tiny C Compiler (often abbreviated as tcc) is a C compiler for x86 and x86-64 platforms developed by Fabrice Bellard. It is written in C and Assembler, and distributed under GNU LGPL.

Implementation features:

  • small size. Compiler executable for x86 is about 100KB, so it can be launched from a floppy disk or rescue disk.
  • fast compilation. The author of the compiler states that tcc compiled Links web-browser 9 times faster than gcc.
  • the language used has several tcc-specific features, for example, memory control and arrays boundary checking. The changes are aimed at improving programs safety.
  • tcc allows to run programs immediately after compilation, using a command line argument. This allows to run programs as shell scripts.