Difference between revisions of "Tcc"

From ArchWiki
Jump to: navigation, search
m (Not directly related to package.)
(replaced external links (https://github.com/lahwaacz/wiki-scripts/blob/master/link-checker.py (interactive)))
 
(6 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
[http://bellard.org/tcc/ Tcc] is a small and fast C compiler.
 
[http://bellard.org/tcc/ Tcc] is a small and fast C compiler.
 
== Installation ==
 
== Installation ==
Install {{pkg|tcc}} form the [[Official Repositories]].
+
Install {{pkg|tcc}} from the [[Official repositories]].
  
 
== Usage ==
 
== Usage ==
Tcc is similar to gcc, but it can also run C programs without compiling. For example,
+
Tcc is similar to ''gcc'', but because of the increased speed of ''tcc'' it can be useful to compile the code and run it immediately:
   tcc -run foo.c
+
   $ tcc -run foo.c
You can make a C source file executed by gcc by adding a shebang
+
 
 +
You can make a C source file executed by ''tcc'' by adding a shebang:
 
   #!/usr/bin/tcc -run
 
   #!/usr/bin/tcc -run
  
 
== See also ==
 
== See also ==
*[http://en.wikipedia.org/wiki/Tiny_C_Compiler Wikipedia article about tcc]
+
*[[wikipedia:Tiny_C_Compiler|Wikipedia article about tcc]]
 
*[[Clang]]
 
*[[Clang]]

Latest revision as of 23:06, 27 February 2016

Tcc is a small and fast C compiler.

Installation

Install tcc from the Official repositories.

Usage

Tcc is similar to gcc, but because of the increased speed of tcc it can be useful to compile the code and run it immediately:

 $ tcc -run foo.c

You can make a C source file executed by tcc by adding a shebang:

 #!/usr/bin/tcc -run

See also