|
|
FREE COMPILER
TCC (TINY CC) | last update 12-29-2011 |
TCC, authored by the very talented
Fabrice Bellard
(progenitor of FFMPEG), is
billed as small, fast, and safe. With a footprint under 1 MiB, the entire
0.9.25 win32 tcc distribution (exes, headers, lib files) fits onto a floppy rescue disk.
You can also easily turn your C files into Linux scripts by adding
#!/usr/local/bin/tcc -run at the top of them.
TCC started as OTCC,
the smallest compiler ever written which can compile itself, winner of the
2002 International Obfuscated C Contest.
I included TCC in my 2011 Win32/64 C Compiler Comparison
and also posted a couple of benchmarks comparing to gcc.
It lives up to its claim of being an extremely fast compiler,
but there are obvious trade-offs. The executable performance is not as good as
MinGW, nor are the error messages nor the level of Windows support
(various less common Windows headers are missing from the Win32 distro). Still,
with some minor mods to my code and to the TCC Windows header files
(I was able to copy some of the MinGW
windows headers), I was able to compile 350K lines of C code, including a lot of
Windows-specific code, in a matter of minutes.
That in itself is a remarkable achievement considering
the size of the TCC distribution.
I don't know how I missed listing TCC for the last seven years. I am embarrassed.
If you think TCC is cool, check out other links on Bellard's site,
including a javascript version of Linux which
runs in your web browser, a javascript scientific
calculator, and a bootable version of TCC.
| |
|
|