summaryrefslogtreecommitdiff
path: root/tcc-doc.texi
diff options
context:
space:
mode:
authorMatteo Cypriani <mcy@lm7.fr>2014-09-05 22:23:49 -0400
committerMatteo Cypriani <mcy@lm7.fr>2014-09-05 22:23:49 -0400
commitc23b49885426f043d0dff7658deb6dc7ef82149d (patch)
treeca45695a2d8f7420e898978f94750a2e934805a2 /tcc-doc.texi
parent494749572823610f5ac6dcc3b3d4afe5ebb6371e (diff)
Imported Upstream version 0.9.27~git20140801.14745bd
Diffstat (limited to 'tcc-doc.texi')
-rw-r--r--tcc-doc.texi44
1 files changed, 33 insertions, 11 deletions
diff --git a/tcc-doc.texi b/tcc-doc.texi
index 42ca806..68bac65 100644
--- a/tcc-doc.texi
+++ b/tcc-doc.texi
@@ -176,6 +176,9 @@ In a script, it gives the following header:
#!/usr/local/bin/tcc -run -L/usr/X11R6/lib -lX11
@end example
+@item -mfloat-abi (ARM only)
+Select the float ABI. Possible values: @code{softfp} and @code{hard}
+
@item -dumpversion
Print only the compiler version and nothing else.
@@ -217,7 +220,7 @@ Undefine preprocessor symbol @samp{sym}.
Compilation flags:
-Note: each of the following warning options has a negative form beginning with
+Note: each of the following options has a negative form beginning with
@option{-fno-}.
@table @option
@@ -276,7 +279,7 @@ default library paths are @file{/usr/local/lib}, @file{/usr/lib} and @file{/lib}
@item -lxxx
Link your program with dynamic library libxxx.so or static library
libxxx.a. The library is searched in the paths specified by the
-@option{-L} option.
+@option{-L} option and @env{LIBRARY_PATH} variable.
@item -Bdir
Set the path where the tcc internal libraries (and include files) can be
@@ -338,7 +341,7 @@ Generate additional support code to check
memory allocations and array/pointer bounds. @option{-g} is implied. Note
that the generated code is slower and bigger in this case.
-Note: @option{-b} is only available on i386 for the moment.
+Note: @option{-b} is only available on i386 when using libtcc for the moment.
@item -bt N
Display N callers in stack traces. This is useful with @option{-g} or
@@ -361,12 +364,31 @@ Note: GCC options @option{-Ox}, @option{-fx} and @option{-mx} are
ignored.
@c man end
+@c man begin ENVIRONMENT
+Environment variables that affect how tcc operates.
+
+@table @option
+
+@item CPATH
+@item C_INCLUDE_PATH
+A colon-separated list of directories searched for include files,
+directories given with @option{-I} are searched first.
+
+@item LIBRARY_PATH
+A colon-separated list of directories searched for libraries for the
+@option{-l} option, directories given with @option{-L} are searched first.
+
+@end table
+
+@c man end
+
@ignore
@setfilename tcc
@settitle Tiny C Compiler
@c man begin SEEALSO
+cpp(1),
gcc(1)
@c man end
@@ -388,13 +410,14 @@ and floating point numbers (@code{long double}, @code{double}, and
@section ISOC99 extensions
TCC implements many features of the new C standard: ISO C99. Currently
-missing items are: complex and imaginary numbers and variable length
-arrays.
+missing items are: complex and imaginary numbers.
Currently implemented ISOC99 features:
@itemize
+@item variable length arrays.
+
@item 64 bit @code{long long} types are fully supported.
@item The boolean type @code{_Bool} is supported.
@@ -596,8 +619,7 @@ are supported.
@itemize
-@item @code{__TINYC__} is a predefined macro to @code{1} to
-indicate that you use TCC.
+@item @code{__TINYC__} is a predefined macro to indicate that you use TCC.
@item @code{#!} at the start of a line is ignored to allow scripting.
@@ -702,7 +724,7 @@ They can be defined several times in the same source. Use 'b'
@cindex asciz directive
@cindex ascii directive
-All directives are preceeded by a '.'. The following directives are
+All directives are preceded by a '.'. The following directives are
supported:
@itemize
@@ -921,7 +943,7 @@ reverse order, a first pass is done to reverse the argument order.
@section Types
-The types are stored in a single 'int' variable. It was choosen in the
+The types are stored in a single 'int' variable. It was chosen in the
first stages of development when tcc was much simpler. Now, it may not
be the best solution.
@@ -948,7 +970,7 @@ be the best solution.
#define VT_BITFIELD 0x0040 /* bitfield modifier */
#define VT_CONSTANT 0x0800 /* const modifier */
#define VT_VOLATILE 0x1000 /* volatile modifier */
-#define VT_SIGNED 0x2000 /* signed type */
+#define VT_DEFSIGN 0x2000 /* signed type */
#define VT_STRUCT_SHIFT 18 /* structure/enum name shift (14 bits left) */
@end example
@@ -1058,7 +1080,7 @@ are used when bound checking is activated
@item stab_section
@itemx stabstr_section
-are used when debugging is actived to store debug information
+are used when debugging is active to store debug information
@item symtab_section
@itemx strtab_section