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
9- fixed comment parse (signaled by Damian M Gryski)9- fixed comment parse (signaled by Damian M Gryski)
10- fixed macro function bug (signaled by Philippe Ribet)10- fixed macro function bug (signaled by Philippe Ribet)
11- added configure (initial patch by Mitchell N Charity)11- 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
12 14
13version 0.9.16:15version 0.9.16:
14 16
README+1−1
@@ -21,7 +21,7 @@ Features: · 20 unmodified lines
21- Compile and execute C source directly. No linking or assembly21- Compile and execute C source directly. No linking or assembly
22 necessary. Full C preprocessor included. 22 necessary. Full C preprocessor included.
23 23
24- C script supported : just add '#!/usr/local/bin/tcc' at the first24- C script supported : just add '#!/usr/local/bin/tcc -run' at the first
25 line of your C source, and execute it directly from the command25 line of your C source, and execute it directly from the command
26 line.26 line.
27 27
tcc-doc.texi+20−16
@@ -4,11 +4,7 @@ · 3 unmodified lines
4@settitle Tiny C Compiler Reference Documentation4@settitle Tiny C Compiler Reference Documentation
5@c %**end of header5@c %**end of header
6 6
7@include version.texi7@include config.texi
8
9@ifinfo
10Bla bla bla
11@end ifinfo
12 8
13@iftex9@iftex
14@titlepage10@titlepage
@@ -20,11 +16,11 @@ Bla bla bla · 5 unmodified lines
20@headings double16@headings double
21@end iftex17@end iftex
22 18
23@ifnothtml19@c @ifhtml
24@contents20@contents
25@end ifnothtml21@c @end ifhtml
26 22
27@ifnottex23@ifnothtml
28@node Top, Introduction, (dir), (dir)24@node Top, Introduction, (dir), (dir)
29@top Tiny C Compiler Reference Documentation25@top Tiny C Compiler Reference Documentation
30 26
@@ -34,9 +30,9 @@ This manual documents version @value{VERSION} of the Tiny C Compiler. · 3 unmodified lines
34* Introduction:: Introduction to tcc.30* Introduction:: Introduction to tcc.
35* Invoke:: Invocation of tcc (command line, options).31* Invoke:: Invocation of tcc (command line, options).
36* Bounds:: Automatic bounds-checking of C code.32* Bounds:: Automatic bounds-checking of C code.
37* Libtcc:: bla bla bla.33* Libtcc:: The libtcc library.
38@end menu34@end menu
39@end ifnottex35@end ifnothtml
40 36
41@node Introduction37@node Introduction
42@chapter Introduction38@chapter Introduction
@@ -65,12 +61,14 @@ generation (@pxref{Libtcc}). · 22 unmodified lines
65@node Invoke61@node Invoke
66@chapter Command line invocation62@chapter Command line invocation
67 63
64[This manual documents version @value{VERSION} of the Tiny C Compiler]
65
68@section Quick start66@section Quick start
69 67
70@example68@example
71usage: tcc [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]69usage: tcc [-v] [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]
72 [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]70 [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]
73 [--] infile1 [infile2... --] [infile_args...]71 [infile1 infile2...] [-run infile args...]
74@end example72@end example
75 73
76@noindent74@noindent
@@ -81,14 +79,14 @@ arguments. · 4 unmodified lines
81Here are some examples to understand the logic:79Here are some examples to understand the logic:
82 80
83@table @code81@table @code
84@item @samp{tcc a.c}82@item @samp{tcc -run a.c}
85Compile @file{a.c} and execute it directly83Compile @file{a.c} and execute it directly
86 84
87@item @samp{tcc a.c arg1}85@item @samp{tcc -run a.c arg1}
88Compile a.c and execute it directly. arg1 is given as first argument to86Compile a.c and execute it directly. arg1 is given as first argument to
89the @code{main()} of a.c.87the @code{main()} of a.c.
90 88
91@item @samp{tcc -- a.c b.c -- arg1}89@item @samp{tcc a.c -run b.c arg1}
92Compile @file{a.c} and @file{b.c}, link them together and execute them. arg1 is given90Compile @file{a.c} and @file{b.c}, link them together and execute them. arg1 is given
93as first argument to the @code{main()} of the resulting program. Because91as first argument to the @code{main()} of the resulting program. Because
94multiple C files are specified, @option{--} are necessary to clearly separate the92multiple 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
119Scripting:117Scripting:
120 118
121TCC can be invoked from @emph{scripts}, just as shell scripts. You just119TCC can be invoked from @emph{scripts}, just as shell scripts. You just
122need to add @code{#!/usr/local/bin/tcc} at the start of your C source:120need to add @code{#!/usr/local/bin/tcc -run} at the start of your C source:
123 121
124@example122@example
125#!/usr/local/bin/tcc123#!/usr/local/bin/tcc
@@ -137,6 +135,9 @@ int main() · 11 unmodified lines
137General Options:135General Options:
138 136
139@table @option137@table @option
138@item -v
139Display current TCC version.
140
140@item -c141@item -c
141Generate an object file (@option{-o} option must also be given).142Generate an object file (@option{-o} option must also be given).
142 143
@@ -149,6 +150,9 @@ Set the path where the tcc internal libraries can be found (default is · 6 unmodified lines
149 150
150@item -bench151@item -bench
151Output compilation statistics.152Output compilation statistics.
153
154@item -run
155Run compiled source.
152@end table156@end table
153 157
154Preprocessor options:158Preprocessor 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