changeset 291:607339386741

[project @ 2003-10-04 21:29:04 by bellard] update
author bellard
date Sat, 04 Oct 2003 21:29:04 +0000
parents 5974fe4b1e28
children 18347d6348fc
files Changelog TODO tcc-doc.texi
diffstat 3 files changed, 33 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Changelog	Sat Oct 04 21:25:32 2003 +0000
+++ b/Changelog	Sat Oct 04 21:29:04 2003 +0000
@@ -1,3 +1,12 @@
+version 0.9.20:
+
+- added '-w' option
+- added '.gnu.linkonce' ELF sections support
+- fixed libc linking when running in memory (avoid 'stat' function
+  errors).
+- extended '-run' option to be able to give several arguments to a C
+  script.
+
 version 0.9.19:
 
 - "alacarte" linking (Dave Long)
--- a/TODO	Sat Oct 04 21:25:32 2003 +0000
+++ b/TODO	Sat Oct 04 21:29:04 2003 +0000
@@ -1,5 +1,7 @@
 TODO list:
 
+- cast bug (Peter Wang)
+- define incomplete type if defined several times (Peter Wang).
 - long long constant evaluation
 - configure --cc=tcc (still one bug in libtcc1.c)
 - disable-asm and disable-bcheck options
@@ -26,14 +28,12 @@
 - check section alignment in C
 - fix invalid cast in comparison 'if (v == (int8_t)v)'
 - packed attribute
-- support link once trick (gcc 3.2 / glibc compilation issue)
 - finish varargs.h support (gcc 3.2 testsuite issue)
 - fix static functions declared inside block
 - C99: add variable size arrays (gcc 3.2 testsuite issue)
 - C99: add complex types (gcc 3.2 testsuite issue)
 - postfix compound literals (see 20010124-1.c)
 - fix multiple unions init
-- look at GCC 3.2 compatibility problems.
 - setjmp is not supported properly in bound checking.
 - better local variables handling (needed for other targets)
 - fix bound check code with '&' on local variables (currently done
--- a/tcc-doc.texi	Sat Oct 04 21:25:32 2003 +0000
+++ b/tcc-doc.texi	Sat Oct 04 21:29:04 2003 +0000
@@ -154,8 +154,28 @@
 @item -bench
 Output compilation statistics.
 
-@item -run
-Run compiled source.
+@item -run source [args...]
+
+Compile file @var{source} and run it with the command line arguments
+@var{args}. In order to be able to give more than one argument to a
+script, several TCC options can be given @emph{after} the
+@option{-run} option, separated by spaces. Example:
+
+@example
+tcc "-run -L/usr/X11R6/lib -lX11" ex4.c
+@end example
+
+In a script, it gives the following header:
+
+@example
+#!/usr/local/bin/tcc -run -L/usr/X11R6/lib -lX11
+#include <stdlib.h>
+int main(int argc, char **argv)
+@{
+    ...
+@}
+@end example
+
 @end table
 
 Preprocessor options: