Tiny C compiler

from Wikipedia, the free encyclopedia
Tiny C compiler

TCC-logo.gif
Basic data

developer Fabrice Bellard (until 2018)
volunteer
Publishing year 2002
Current  version 0.9.27
(December 17, 2017)
operating system Unix , GNU / Linux , OpenBSD , NetBSD , Windows etc. a.
programming language C , assembly language
category Compiler
License GNU Lesser General Public License (LGPL)
tcc website

The Tiny C Compiler (TCC also, tcc or TinyCC called) is one of Fabrice Bellard written C - compiler for x86, x86-64, ARM and TMS32067 platforms. It was developed with the aim of working even on slow computers with little memory (for example on rescue CDs). The TCC is under the GNU Lesser General Public License (LGPL) .

The TCC supports a large part of ANSI C , the new ISO C99 standard and many GNUC extensions, including the possibility of using the inline assembler for the x86 platform.

Features

  • TCC is small - the TCC can also compile on computers with few resources (for example little memory on rescue CDs). (The TCC for the x86 platform is approximately 100 KB in size (contains compiler , preprocessor , assembler and linker .))
  • TCC is fast - The TCC creates optimized code and compiles, assembles and links up to 9 times faster than GCC .
  • Any C library can be used. The TCC aims to fully support the ISO C99 standard. TCC can compile itself.
  • TCC optionally includes a memory and array limit checker. Code with index checking can be mixed with standard code at will.
  • TCC compiles C code directly; neither assembling nor linking is necessary. TCC contains a complete C preprocessor and a GNU-like assembler.
  • TCC supports C as script language (Unix / Linux: #!/usr/bin/env -S tcc -runinsert at the beginning of the code, script is executed directly from the command line)
  • From version 0.9.23 the TCC supports the creation of PE applications for Microsoft Windows .

The LGPL license allows anyone to modify and / or redistribute the code. TCC can also be used to develop open source and proprietary software.

history

TCC has its origins in the Obfuscated Tiny C Compiler (OTCC), a program that Bellard wrote for the International Obfuscated C Code Contest (IOCCC) 2002. Bellard expanded the program and made the code more readable to create the TCC.

supporting documents

  1. Obfuscated Tiny C Compiler . (accessed April 5, 2019).
  2. TCC version 0.9.27 is out
  3. Bellard, Fabrice Obfuscated Tiny C Compiler

Web links