aboutsummaryrefslogtreecommitdiff
path: root/tcc-doc.texi
diff options
context:
space:
mode:
authorbellard <bellard>2003-10-04 21:29:04 +0000
committerbellard <bellard>2003-10-04 21:29:04 +0000
commitb7f12dfbdff66b2012f1d7a7f1074f08a139805c (patch)
tree92fa5b02d6a8ba338d7518366b5a3957c91cbbdc /tcc-doc.texi
parent9890ea1233a1caf84782a0ab364622a8444e0519 (diff)
downloadtinycc-b7f12dfbdff66b2012f1d7a7f1074f08a139805c.tar.gz
tinycc-b7f12dfbdff66b2012f1d7a7f1074f08a139805c.tar.bz2
update
Diffstat (limited to 'tcc-doc.texi')
-rw-r--r--tcc-doc.texi24
1 files changed, 22 insertions, 2 deletions
diff --git a/tcc-doc.texi b/tcc-doc.texi
index 1396fb0..8d25226 100644
--- a/tcc-doc.texi
+++ b/tcc-doc.texi
@@ -154,8 +154,28 @@ Set the path where the tcc internal libraries can be found (default is
@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: