Mercurial > hg > tinycc
changeset 240:d61087f12792
[project @ 2003-04-13 21:56:00 by bellard]
update
author | bellard |
---|---|
date | Sun, 13 Apr 2003 21:56:00 +0000 |
parents | 0a5f3f18d8b4 |
children | f8e0b101d4a2 |
files | Changelog README tcc-doc.texi |
diffstat | 3 files changed, 23 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/Changelog Sun Apr 13 21:55:37 2003 +0000 +++ b/Changelog Sun Apr 13 21:56:00 2003 +0000 @@ -9,6 +9,8 @@ - fixed comment parse (signaled by Damian M Gryski) - fixed macro function bug (signaled by Philippe Ribet) - 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:
--- a/README Sun Apr 13 21:55:37 2003 +0000 +++ b/README Sun Apr 13 21:56:00 2003 +0000 @@ -21,7 +21,7 @@ - Compile and execute C source directly. No linking or assembly 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.
--- a/tcc-doc.texi Sun Apr 13 21:55:37 2003 +0000 +++ b/tcc-doc.texi Sun Apr 13 21:56:00 2003 +0000 @@ -4,11 +4,7 @@ @settitle Tiny C Compiler Reference Documentation @c %**end of header -@include version.texi - -@ifinfo -Bla bla bla -@end ifinfo +@include config.texi @iftex @titlepage @@ -20,11 +16,11 @@ @headings double @end iftex -@ifnothtml +@c @ifhtml @contents -@end ifnothtml +@c @end ifhtml -@ifnottex +@ifnothtml @node Top, Introduction, (dir), (dir) @top Tiny C Compiler Reference Documentation @@ -34,9 +30,9 @@ * Introduction:: Introduction to tcc. * Invoke:: Invocation of tcc (command line, options). * Bounds:: Automatic bounds-checking of C code. -* Libtcc:: bla bla bla. +* Libtcc:: The libtcc library. @end menu -@end ifnottex +@end ifnothtml @node Introduction @chapter Introduction @@ -65,12 +61,14 @@ @node Invoke @chapter Command line invocation +[This manual documents version @value{VERSION} of the Tiny C Compiler] + @section Quick start @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] - [--] infile1 [infile2... --] [infile_args...] + [infile1 infile2...] [-run infile args...] @end example @noindent @@ -81,14 +79,14 @@ Here are some examples to understand the logic: @table @code -@item @samp{tcc a.c} +@item @samp{tcc -run a.c} 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 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 as first argument to the @code{main()} of the resulting program. Because multiple C files are specified, @option{--} are necessary to clearly separate the @@ -119,7 +117,7 @@ Scripting: 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 #!/usr/local/bin/tcc @@ -137,6 +135,9 @@ General Options: @table @option +@item -v +Display current TCC version. + @item -c Generate an object file (@option{-o} option must also be given). @@ -149,6 +150,9 @@ @item -bench Output compilation statistics. + +@item -run +Run compiled source. @end table Preprocessor options: