Difference between revisions of "Tcc"

From ArchWiki
Jump to: navigation, search
(See also)
m (Not directly related to package.)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Package development]]
+
[[Category:Development]]
[http://bellard.org/tcc/ Tcc] is a C compiler. It is small fast.
+
[http://bellard.org/tcc/ Tcc] is a small and fast C compiler.
 
== Installation ==
 
== Installation ==
 
Install {{pkg|tcc}} form the [[Official Repositories]].
 
Install {{pkg|tcc}} form the [[Official Repositories]].
Line 9: Line 9:
 
You can make a C source file executed by gcc by adding a shebang
 
You can make a C source file executed by gcc by adding a shebang
 
   #!/usr/bin/tcc -run
 
   #!/usr/bin/tcc -run
 
== Build packages with tcc ==
 
Add {{ic|1=export CC=tcc}} to your {{ic|/etc/makepkg.conf}}.
 
  
 
== See also ==
 
== See also ==
*[http://bellard.org/tcc/ TCC Homepage]
+
*[http://en.wikipedia.org/wiki/Tiny_C_Compiler Wikipedia article about tcc]
*[https://wiki.archlinux.org/index.php/Clang clang:ArchWiki]
+
*[[Clang]]

Revision as of 05:34, 19 November 2012

Tcc is a small and fast C compiler.

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

See also