History

Add travis tests integration

Vlad Vissoultchev committed 10 years ago

Commit f021a7c1 parent 587aace2 files · +126 −0Browse files

Unified · Split

2 files
  1. .travis.yml +1 −0
  2. README.md +125 −0
.travis.yml+1−0
@@ -0,0 +1 @@
1language: c
README.md+125−0
@@ -0,0 +1,125 @@
1**TinyCC** (or tcc) is short for Tiny C Compiler.
2
3This a clone of the mob development repo at http://repo.or.cz/tinycc.git
4
5|Branch |Status |
6|------------|---------|
7|mob | [![Build Status](https://travis-ci.org/wqweto/tinycc.svg?branch=mob)](https://travis-ci.org/wqweto/tinycc) |
8|dev | [![Build Status](https://travis-ci.org/wqweto/tinycc.svg?branch=dev)](https://travis-ci.org/wqweto/tinycc) |
9
10### License
11
12Tiny C Compiler project is licensed under [LGPL](https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License) but currently there is an effort to relicense the project under [MIT License](https://en.wikipedia.org/wiki/MIT_License). See RELICENSING file in root for current status.
13
14### Branch Policy
15
16The "dev" branch is the one where all contributions will be merged before reaching "mob". If you plan to propose a patch, please commit into the "dev" branch or its own feature branch. Direct commit to "mob" are not permitted.
17
18### Original Fabrice Bellard readme
19
20```
21Tiny C Compiler - C Scripting Everywhere - The Smallest ANSI C compiler
22-----------------------------------------------------------------------
23
24Features:
25--------
26
27- SMALL! You can compile and execute C code everywhere, for example on
28 rescue disks.
29
30- FAST! tcc generates optimized x86 code. No byte code
31 overhead. Compile, assemble and link about 7 times faster than 'gcc
32 -O0'.
33
34- UNLIMITED! Any C dynamic library can be used directly. TCC is
35 heading torward full ISOC99 compliance. TCC can of course compile
36 itself.
37
38- SAFE! tcc includes an optional memory and bound checker. Bound
39 checked code can be mixed freely with standard code.
40
41- Compile and execute C source directly. No linking or assembly
42 necessary. Full C preprocessor included.
43
44- C script supported : just add '#!/usr/local/bin/tcc -run' at the first
45 line of your C source, and execute it directly from the command
46 line.
47
48Documentation:
49-------------
50
511) Installation on a i386/x86_64/arm Linux/OSX/FreeBSD host (for Windows read tcc-win32.txt)
52
53Note: For OSX and FreeBSD, gmake should be used instead of make.
54
55 ./configure
56 make
57 make test
58 make install
59
60Alternatively, out-of-tree builds are supported: you may use different
61directories to hold build objects, kept separate from your source tree:
62
63 mkdir _build
64 cd _build
65 ../configure
66 make
67 make test
68 make install
69
70Texi2html must be installed to compile the doc.
71By default, tcc is installed in /usr/local/bin.
72./configure --help shows configuration options.
73
74
752) Introduction
76
77We assume here that you know ANSI C. Look at the example ex1.c to know
78what the programs look like.
79
80The include file <tcclib.h> can be used if you want a small basic libc
81include support (especially useful for floppy disks). Of course, you
82can also use standard headers, although they are slower to compile.
83
84You can begin your C script with '#!/usr/local/bin/tcc -run' on the first
85line and set its execute bits (chmod a+x your_script). Then, you can
86launch the C code as a shell or perl script :-) The command line
87arguments are put in 'argc' and 'argv' of the main functions, as in
88ANSI C.
89
903) Examples
91
92ex1.c: simplest example (hello world). Can also be launched directly
93as a script: './ex1.c'.
94
95ex2.c: more complicated example: find a number with the four
96operations given a list of numbers (benchmark).
97
98ex3.c: compute fibonacci numbers (benchmark).
99
100ex4.c: more complicated: X11 program. Very complicated test in fact
101because standard headers are being used ! As for ex1.c, can also be launched
102directly as a script: './ex4.c'.
103
104ex5.c: 'hello world' with standard glibc headers.
105
106tcc.c: TCC can of course compile itself. Used to check the code
107generator.
108
109tcctest.c: auto test for TCC which tests many subtle possible bugs. Used
110when doing 'make test'.
111
1124) Full Documentation
113
114Please read tcc-doc.html to have all the features of TCC.
115
116Additional information is available for the Windows port in tcc-win32.txt.
117
118License:
119-------
120
121TCC is distributed under the GNU Lesser General Public License (see
122COPYING file).
123
124Fabrice Bellard.
125```

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t