Tiny C Complier/TCC

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.