Features
Small! You can compile and execute C code everywhere, for example on rescue disks (about 100kb for x86 TCC executable, including C Preprocessor, C compiler, Assembler and linker ).
Fast! TCC generates x86 code. No byte code overhead. Compile, assemble and link several times faster than GCC.
Unlimited! Any c dynamic library can be used directly. TCC is heading torward full isoc99 compliance. TCC can of course compile itself.
Safe! TCC implements des 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 and GNU-like extends er encoded.
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.
With libtcc, you can use TCC as a backend for dynamic code generation.
--------------------------------------------------------
Small and fast fun. I found the previous one when I sorted out the hard disk.
For example, the CL compiler in vc2010 uses the O1 option to compile more than 50 K. This is only 3.5 K. It is estimated that the author is familiar with coff .. I haven't seen Pe yet, so I can't point out which parts have been optimized. I think this will be a valuable thing. It is also open-source and will be used in the next semester to learn the compilation principles and operating system principles.
The DLL and OBJ files on windows are supported, and the header files are full.
This compiler also has an interesting feature, that is, it can explain and execute C code. It can run like a script language, cool!
However, Microsoft's MSE anti-virus software will report false positives. This is a pity. Otherwise, you can use it to do bad things, and you don't need to Optimize PE.
I like it very much. It is recommended ~
The official website is:
Http://bellard.org/tcc/
I plan to translate the self-contained document, more than 100 kb of HTML, which is expected to be translated in a week. Do not use Google translation to exercise your ability to read documents ~
You can pay attention to this and there will be translation updates later.