🚀 Read this insightful post from Hacker News 📖
📂 **Category**:
✅ **What You’ll Learn**:
Tiny C Compiler
News
[Note: I am no longer working on TCC. Check the mailing list to get up
to date information.]
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 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 and GNU-like assembler
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. - With
libtcc, you can use TCC as a backend for dynamic code
generation.
Compilation Speed
| Compiler | Time(s) | lines/second | MBytes/second |
| TinyCC 0.9.22 | 2.27 | 859000 | 29.6 |
| GCC 3.2 -O0 | 20.0 | 98000 | 3.4 |
Measures were done on a 2.4 GHz Pentium 4. Real time is measured. Compilation
time includes compilation, assembly and linking.
More up to date tests are available:
1,
2,
3,
4.
You want to help ?
Here are some suggestions:
- Report bugs to the mailing list (and eventually fix them).
Links
License
TCC is distributed under the GNU Lesser General Public License.
Copyright (c) 2001-2018 Fabrice Bellard
Fabrice Bellard –
https://bellard.org/ – https://bellard.org/tcc/
🔥 **What’s your take?**
Share your thoughts in the comments below!
#️⃣ **#TCC #Tiny #Compiler**
🕒 **Posted on**: 1770507585
🌟 **Want more?** Click here for more info! 🌟
