tcc-0.9.20
所属分类:编译器/解释器
开发工具:C/C++
文件大小:194KB
下载次数:194
上传日期:2004-06-09 08:06:50
上 传 者:
lizhiming
说明: 小而快的c编译器,可以直接解释运行C语言写就的源程序。
(Small but fast c compiler can directly explain the C language to run on the source.)
文件列表:
tcc-0.9.20\tcc-0.9.20\bcheck.c (24594, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\boundtest.c (2894, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\Changelog (8693, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\configure (7252, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\COPYING (26428, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\elf.h (60002, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\ex1.c (107, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\ex2.c (2183, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\ex3.c (380, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\ex4.c (603, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\ex5.c (99, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\float.h (1347, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\gcctestsuite.sh (750, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\i386-asm.c (33005, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\i386-asm.h (21146, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\i386-gen.c (26259, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\libtcc.h (2816, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\libtcc1.c (12583, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\libtcc_test.c (1380, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\Makefile (5938, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\Makefile.uClibc (871, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\stab.def (9131, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\stab.h (259, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\stdarg.h (385, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\stdbool.h (136, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\stddef.h (541, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\tcc-doc.html (39968, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\tcc-doc.texi (30643, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\tcc.1 (10942, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\tcc.c (291785, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\tccasm.c (22700, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\tccelf.c (69578, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\tcclib.h (2544, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\tcctest.c (39074, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\tcctok.h (8630, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\texi2pod.pl (11030, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\TODO (2941, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\varargs.h (177, 2003-10-05)
tcc-0.9.20\tcc-0.9.20\VERSION (6, 2003-10-05)
... ...
Tiny C Compiler - C Scripting Everywhere - The Smallest ANSI C compiler
-----------------------------------------------------------------------
Features:
--------
- SMALL! You can compile and execute C code everywhere, for example on
rescue disks.
- FAST! tcc generates optimized x86 code. No byte code
overhead. Compile, assemble and link about 7 times faster than 'gcc
-O0'.
- 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 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.
Documentation:
-------------
1) Installation
*** TCC currently only works on Linux x86 with glibc >= 2.1 ***.
./configure
make
make test
make install
By default, tcc is installed in /usr/local/bin.
./configure --help shows configuration options.
2) Introduction
We assume here that you know ANSI C. Look at the example ex1.c to know
what the programs look like.
The include file can be used if you want a small basic libc
include support (especially useful for floppy disks). Of course, you
can also use standard headers, although they are slower to compile.
You can begin your C script with '#!/usr/local/bin/tcc -run' on the first
line and set its execute bits (chmod a+x your_script). Then, you can
launch the C code as a shell or perl script :-) The command line
arguments are put in 'argc' and 'argv' of the main functions, as in
ANSI C.
3) Examples
ex1.c: simplest example (hello world). Can also be launched directly
as a script: './ex1.c'.
ex2.c: more complicated example: find a number with the four
operations given a list of numbers (benchmark).
ex3.c: compute fibonacci numbers (benchmark).
ex4.c: more complicated: X11 program. Very complicated test in fact
because standard headers are being used !
ex5.c: 'hello world' with standard glibc headers.
tcc.c: TCC can of course compile itself. Used to check the code
generator.
tcctest.c: auto test for TCC which tests many subtle possible bugs. Used
when doing 'make test'.
4) Full Documentation
Please read tcc-doc.html to have all the features of TCC.
License:
-------
TCC is distributed under the GNU Lesser General Public License (see
COPYING file).
Fabrice Bellard.
近期下载者:
相关文件:
收藏者: