① 网址:http://bellard.org/tcc/
注意:这个网页下面几个有用的链接:
Obfuscated Tiny C Compiler ——http://bellard.org/otcc/
The International Obfuscated C Code Contest(国际混乱C语言大赛)——http://www.ioccc.org/
特点:
- 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.
② 编译
./configure
make
make test
make install
③ 测试
正常编译:tcc -o ex1 ex1.c
脚本方式:当前目录下,./ex1.c
本文介绍了一个小巧且高效的C语言编译器TinyCCompiler(TCC),它可以在各种环境中进行C代码的编译和执行,如救援磁盘上。TCC具备快速编译能力,并支持直接编译和执行C源代码脚本,同时还提供了内存和边界检查的安全选项。
1645

被折叠的 条评论
为什么被折叠?



