History

update

bellard committed 23 years ago

Commit 3bbcd301 parent fe7bcde3 files · +23 −17Browse files

Unified · Split

3 files
  1. Changelog +2 −0
  2. README +1 −1
  3. tcc-doc.texi +20 −16
Changelog+2−0
@@ -9,6 +9,8 @@ version 0.9.17: · 8 unmodified lines
99 - fixed comment parse (signaled by Damian M Gryski)
1010 - fixed macro function bug (signaled by Philippe Ribet)
1111 - added configure (initial patch by Mitchell N Charity)
12+- added '-run' and '-v' options (initial patch by vlindos)
13+- added real date report in __DATE__ and __TIME__ macros
1214
1315 version 0.9.16:
1416
README+1−1
@@ -21,7 +21,7 @@ Features: · 20 unmodified lines
2121 - Compile and execute C source directly. No linking or assembly
2222 necessary. Full C preprocessor included.
2323
24−- C script supported : just add '#!/usr/local/bin/tcc' at the first
24+- C script supported : just add '#!/usr/local/bin/tcc -run' at the first
2525 line of your C source, and execute it directly from the command
2626 line.
2727
tcc-doc.texi+20−16
@@ -4,11 +4,7 @@ · 3 unmodified lines
44 @settitle Tiny C Compiler Reference Documentation
55 @c %**end of header
66
7−@include version.texi
8−
9−@ifinfo
10−Bla bla bla
11−@end ifinfo
7+@include config.texi
128
139 @iftex
1410 @titlepage
@@ -20,11 +16,11 @@ Bla bla bla · 5 unmodified lines
2016 @headings double
2117 @end iftex
2218
23−@ifnothtml
19+@c @ifhtml
2420 @contents
25−@end ifnothtml
21+@c @end ifhtml
2622
27−@ifnottex
23+@ifnothtml
2824 @node Top, Introduction, (dir), (dir)
2925 @top Tiny C Compiler Reference Documentation
3026
@@ -34,9 +30,9 @@ This manual documents version @value{VERSION} of the Tiny C Compiler. · 3 unmodified lines
3430 * Introduction:: Introduction to tcc.
3531 * Invoke:: Invocation of tcc (command line, options).
3632 * Bounds:: Automatic bounds-checking of C code.
37−* Libtcc:: bla bla bla.
33+* Libtcc:: The libtcc library.
3834 @end menu
39−@end ifnottex
35+@end ifnothtml
4036
4137 @node Introduction
4238 @chapter Introduction
@@ -65,12 +61,14 @@ generation (@pxref{Libtcc}). · 22 unmodified lines
6561 @node Invoke
6662 @chapter Command line invocation
6763
64+[This manual documents version @value{VERSION} of the Tiny C Compiler]
65+
6866 @section Quick start
6967
7068 @example
71−usage: tcc [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]
69+usage: tcc [-v] [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]
7270 [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]
73− [--] infile1 [infile2... --] [infile_args...]
71+ [infile1 infile2...] [-run infile args...]
7472 @end example
7573
7674 @noindent
@@ -81,14 +79,14 @@ arguments. · 4 unmodified lines
8179 Here are some examples to understand the logic:
8280
8381 @table @code
84−@item @samp{tcc a.c}
82+@item @samp{tcc -run a.c}
8583 Compile @file{a.c} and execute it directly
8684
87−@item @samp{tcc a.c arg1}
85+@item @samp{tcc -run a.c arg1}
8886 Compile a.c and execute it directly. arg1 is given as first argument to
8987 the @code{main()} of a.c.
9088
91−@item @samp{tcc -- a.c b.c -- arg1}
89+@item @samp{tcc a.c -run b.c arg1}
9290 Compile @file{a.c} and @file{b.c}, link them together and execute them. arg1 is given
9391 as first argument to the @code{main()} of the resulting program. Because
9492 multiple C files are specified, @option{--} are necessary to clearly separate the
@@ -119,7 +117,7 @@ Compile @file{a.c} and @file{b.c}, link them together and generate the object fi · 24 unmodified lines
119117 Scripting:
120118
121119 TCC can be invoked from @emph{scripts}, just as shell scripts. You just
122−need to add @code{#!/usr/local/bin/tcc} at the start of your C source:
120+need to add @code{#!/usr/local/bin/tcc -run} at the start of your C source:
123121
124122 @example
125123 #!/usr/local/bin/tcc
@@ -137,6 +135,9 @@ int main() · 11 unmodified lines
137135 General Options:
138136
139137 @table @option
138+@item -v
139+Display current TCC version.
140+
140141 @item -c
141142 Generate an object file (@option{-o} option must also be given).
142143
@@ -149,6 +150,9 @@ Set the path where the tcc internal libraries can be found (default is · 6 unmodified lines
149150
150151 @item -bench
151152 Output compilation statistics.
153+
154+@item -run
155+Run compiled source.
152156 @end table
153157
154158 Preprocessor options:

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