forked from Mirrors/tinycc
update
parent
fe7bcdef6b
commit
3bbcd30776
|
@ -9,6 +9,8 @@ version 0.9.17:
|
||||||
- fixed comment parse (signaled by Damian M Gryski)
|
- fixed comment parse (signaled by Damian M Gryski)
|
||||||
- fixed macro function bug (signaled by Philippe Ribet)
|
- fixed macro function bug (signaled by Philippe Ribet)
|
||||||
- added configure (initial patch by Mitchell N Charity)
|
- added configure (initial patch by Mitchell N Charity)
|
||||||
|
- added '-run' and '-v' options (initial patch by vlindos)
|
||||||
|
- added real date report in __DATE__ and __TIME__ macros
|
||||||
|
|
||||||
version 0.9.16:
|
version 0.9.16:
|
||||||
|
|
||||||
|
|
2
README
2
README
|
@ -21,7 +21,7 @@ Features:
|
||||||
- Compile and execute C source directly. No linking or assembly
|
- Compile and execute C source directly. No linking or assembly
|
||||||
necessary. Full C preprocessor included.
|
necessary. Full C preprocessor included.
|
||||||
|
|
||||||
- C script supported : just add '#!/usr/local/bin/tcc' at the first
|
- C script supported : just add '#!/usr/local/bin/tcc -run' at the first
|
||||||
line of your C source, and execute it directly from the command
|
line of your C source, and execute it directly from the command
|
||||||
line.
|
line.
|
||||||
|
|
||||||
|
|
36
tcc-doc.texi
36
tcc-doc.texi
|
@ -4,11 +4,7 @@
|
||||||
@settitle Tiny C Compiler Reference Documentation
|
@settitle Tiny C Compiler Reference Documentation
|
||||||
@c %**end of header
|
@c %**end of header
|
||||||
|
|
||||||
@include version.texi
|
@include config.texi
|
||||||
|
|
||||||
@ifinfo
|
|
||||||
Bla bla bla
|
|
||||||
@end ifinfo
|
|
||||||
|
|
||||||
@iftex
|
@iftex
|
||||||
@titlepage
|
@titlepage
|
||||||
|
@ -20,11 +16,11 @@ Bla bla bla
|
||||||
@headings double
|
@headings double
|
||||||
@end iftex
|
@end iftex
|
||||||
|
|
||||||
@ifnothtml
|
@c @ifhtml
|
||||||
@contents
|
@contents
|
||||||
@end ifnothtml
|
@c @end ifhtml
|
||||||
|
|
||||||
@ifnottex
|
@ifnothtml
|
||||||
@node Top, Introduction, (dir), (dir)
|
@node Top, Introduction, (dir), (dir)
|
||||||
@top Tiny C Compiler Reference Documentation
|
@top Tiny C Compiler Reference Documentation
|
||||||
|
|
||||||
|
@ -34,9 +30,9 @@ This manual documents version @value{VERSION} of the Tiny C Compiler.
|
||||||
* Introduction:: Introduction to tcc.
|
* Introduction:: Introduction to tcc.
|
||||||
* Invoke:: Invocation of tcc (command line, options).
|
* Invoke:: Invocation of tcc (command line, options).
|
||||||
* Bounds:: Automatic bounds-checking of C code.
|
* Bounds:: Automatic bounds-checking of C code.
|
||||||
* Libtcc:: bla bla bla.
|
* Libtcc:: The libtcc library.
|
||||||
@end menu
|
@end menu
|
||||||
@end ifnottex
|
@end ifnothtml
|
||||||
|
|
||||||
@node Introduction
|
@node Introduction
|
||||||
@chapter Introduction
|
@chapter Introduction
|
||||||
|
@ -65,12 +61,14 @@ generation (@pxref{Libtcc}).
|
||||||
@node Invoke
|
@node Invoke
|
||||||
@chapter Command line invocation
|
@chapter Command line invocation
|
||||||
|
|
||||||
|
[This manual documents version @value{VERSION} of the Tiny C Compiler]
|
||||||
|
|
||||||
@section Quick start
|
@section Quick start
|
||||||
|
|
||||||
@example
|
@example
|
||||||
usage: tcc [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]
|
usage: tcc [-v] [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]
|
||||||
[-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]
|
[-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]
|
||||||
[--] infile1 [infile2... --] [infile_args...]
|
[infile1 infile2...] [-run infile args...]
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@noindent
|
@noindent
|
||||||
|
@ -81,14 +79,14 @@ arguments.
|
||||||
Here are some examples to understand the logic:
|
Here are some examples to understand the logic:
|
||||||
|
|
||||||
@table @code
|
@table @code
|
||||||
@item @samp{tcc a.c}
|
@item @samp{tcc -run a.c}
|
||||||
Compile @file{a.c} and execute it directly
|
Compile @file{a.c} and execute it directly
|
||||||
|
|
||||||
@item @samp{tcc a.c arg1}
|
@item @samp{tcc -run a.c arg1}
|
||||||
Compile a.c and execute it directly. arg1 is given as first argument to
|
Compile a.c and execute it directly. arg1 is given as first argument to
|
||||||
the @code{main()} of a.c.
|
the @code{main()} of a.c.
|
||||||
|
|
||||||
@item @samp{tcc -- a.c b.c -- arg1}
|
@item @samp{tcc a.c -run b.c arg1}
|
||||||
Compile @file{a.c} and @file{b.c}, link them together and execute them. arg1 is given
|
Compile @file{a.c} and @file{b.c}, link them together and execute them. arg1 is given
|
||||||
as first argument to the @code{main()} of the resulting program. Because
|
as first argument to the @code{main()} of the resulting program. Because
|
||||||
multiple C files are specified, @option{--} are necessary to clearly separate the
|
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
|
||||||
Scripting:
|
Scripting:
|
||||||
|
|
||||||
TCC can be invoked from @emph{scripts}, just as shell scripts. You just
|
TCC can be invoked from @emph{scripts}, just as shell scripts. You just
|
||||||
need to add @code{#!/usr/local/bin/tcc} at the start of your C source:
|
need to add @code{#!/usr/local/bin/tcc -run} at the start of your C source:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
#!/usr/local/bin/tcc
|
#!/usr/local/bin/tcc
|
||||||
|
@ -137,6 +135,9 @@ int main()
|
||||||
General Options:
|
General Options:
|
||||||
|
|
||||||
@table @option
|
@table @option
|
||||||
|
@item -v
|
||||||
|
Display current TCC version.
|
||||||
|
|
||||||
@item -c
|
@item -c
|
||||||
Generate an object file (@option{-o} option must also be given).
|
Generate an object file (@option{-o} option must also be given).
|
||||||
|
|
||||||
|
@ -149,6 +150,9 @@ Set the path where the tcc internal libraries can be found (default is
|
||||||
|
|
||||||
@item -bench
|
@item -bench
|
||||||
Output compilation statistics.
|
Output compilation statistics.
|
||||||
|
|
||||||
|
@item -run
|
||||||
|
Run compiled source.
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
Preprocessor options:
|
Preprocessor options:
|
||||||
|
|
Loading…
Reference in New Issue