Difference between revisions of "Tcc"

From ArchWiki
Jump to: navigation, search
(Created page with "Category:Package development [http://bellard.org/tcc/ Tcc] is a C compiler. It is small fast. == Installation == Install {{pkg|tcc}} form the Official Repositories. =...")
 
Line 10: Line 10:
 
   #!/usr/bin/tcc -run
 
   #!/usr/bin/tcc -run
  
== Build packages with Tcc ==
+
== Build packages with tcc ==
 
Add {{ic|1=export CC=tcc}} to your {{ic|/etc/makepkg.conf}}.
 
Add {{ic|1=export CC=tcc}} to your {{ic|/etc/makepkg.conf}}.
 +
 +
== See also ==
 +
*[bellard.org/tcc/ TCC Homepage]
 +
*[https://wiki.archlinux.org/index.php/Clang clang:ArchWiki]

Revision as of 07:18, 16 November 2012

Tcc is a C compiler. It is small fast.

Installation

Install tcc form the Official Repositories.

Usage

Tcc is similar to gcc, but it can also run C programs without compiling. For example,

 tcc -run foo.c

You can make a C source file executed by gcc by adding a shebang

 #!/usr/bin/tcc -run

Build packages with tcc

Add export CC=tcc to your /etc/makepkg.conf.

See also