aboutsummaryrefslogtreecommitdiff
path: root/tcc-doc.texi
diff options
context:
space:
mode:
authorbellard <bellard>2003-05-18 18:11:06 +0000
committerbellard <bellard>2003-05-18 18:11:06 +0000
commitf0d5a74bcd61cc1fc2a11d06c1f324a9205256a5 (patch)
tree2add8da692ccb4a0f949c5232d7c5f7838faec3e /tcc-doc.texi
parent6cdf6f88d75ff3bb954075f4b294d1f8db2eece9 (diff)
downloadtinycc-f0d5a74bcd61cc1fc2a11d06c1f324a9205256a5.tar.gz
tinycc-f0d5a74bcd61cc1fc2a11d06c1f324a9205256a5.tar.bz2
automatic man page generation from tcc-doc.texi
Diffstat (limited to 'tcc-doc.texi')
-rw-r--r--tcc-doc.texi29
1 files changed, 25 insertions, 4 deletions
diff --git a/tcc-doc.texi b/tcc-doc.texi
index bc7aefa..830f40b 100644
--- a/tcc-doc.texi
+++ b/tcc-doc.texi
@@ -66,12 +66,15 @@ generation (@pxref{Libtcc}).
@section Quick start
@example
-usage: tcc [-v] [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] [-Usym]
- [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]
- [infile1 infile2...] [-run infile args...]
+@c man begin SYNOPSIS
+usage: tcc [@option{-v}] [@option{-c}] [@option{-o}@var{outfile}] [@option{-B}@var{dir}] [@option{-bench}] [@option{-I}@var{dir}] [@option{-D}@var{sym[=val]}] [@option{-U}@var{sym}]
+ [@option{-g}] [@option{-b}] [@option{-bt}@var{N}] [@option{-L}@var{dir}] [@option{-l}@var{lib}] [@option{-shared}] [@option{-static}]
+ [@var{infile1} @var{infile2}@dots{}] [@option{run} @var{infile} @var{args}@dots{}]
+@c man end
@end example
@noindent
+@c man begin DESCRIPTION
TCC options are a very much like gcc options. The main difference is that TCC
can also execute directly the resulting program and give it runtime
arguments.
@@ -120,7 +123,7 @@ TCC can be invoked from @emph{scripts}, just as shell scripts. You just
need to add @code{#!/usr/local/bin/tcc -run} at the start of your C source:
@example
-#!/usr/local/bin/tcc
+#!/usr/local/bin/tcc -run
#include <stdio.h>
int main()
@@ -129,11 +132,13 @@ int main()
return 0;
@}
@end example
+@c man end
@section Option summary
General Options:
+@c man begin OPTIONS
@table @option
@item -v
Display current TCC version.
@@ -224,6 +229,22 @@ Display N callers in stack traces. This is useful with @option{-g} or
Note: GCC options @option{-Ox}, @option{-Wx}, @option{-fx} and @option{-mx} are
ignored.
+@c man end
+
+@ignore
+
+@setfilename tcc
+@settitle Tiny C Compiler
+
+@c man begin SEEALSO
+gcc(1)
+@c man end
+
+@c man begin AUTHOR
+Fabrice Bellard
+@c man end
+
+@end ignore
@chapter C language support