Unified · Split
| @@ -1,3 +1,12 @@ | ||
| 1 | +version 0.9.20: | |
| 2 | + | |
| 3 | +- added '-w' option | |
| 4 | +- added '.gnu.linkonce' ELF sections support | |
| 5 | +- fixed libc linking when running in memory (avoid 'stat' function | |
| 6 | + errors). | |
| 7 | +- extended '-run' option to be able to give several arguments to a C | |
| 8 | + script. | |
| 9 | + | |
| 1 | 10 | version 0.9.19: |
| 2 | 11 | |
| 3 | 12 | - "alacarte" linking (Dave Long) |
| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | TODO list: |
| 2 | 2 | |
| 3 | +- cast bug (Peter Wang) | |
| 4 | +- define incomplete type if defined several times (Peter Wang). | |
| 3 | 5 | - long long constant evaluation |
| 4 | 6 | - configure --cc=tcc (still one bug in libtcc1.c) |
| 5 | 7 | - disable-asm and disable-bcheck options |
| @@ -26,14 +28,12 @@ TODO list: · 20 unmodified lines | ||
| 26 | 28 | - check section alignment in C |
| 27 | 29 | - fix invalid cast in comparison 'if (v == (int8_t)v)' |
| 28 | 30 | - packed attribute |
| 29 | −- support link once trick (gcc 3.2 / glibc compilation issue) | |
| 30 | 31 | - finish varargs.h support (gcc 3.2 testsuite issue) |
| 31 | 32 | - fix static functions declared inside block |
| 32 | 33 | - C99: add variable size arrays (gcc 3.2 testsuite issue) |
| 33 | 34 | - C99: add complex types (gcc 3.2 testsuite issue) |
| 34 | 35 | - postfix compound literals (see 20010124-1.c) |
| 35 | 36 | - fix multiple unions init |
| 36 | −- look at GCC 3.2 compatibility problems. | |
| 37 | 37 | - setjmp is not supported properly in bound checking. |
| 38 | 38 | - better local variables handling (needed for other targets) |
| 39 | 39 | - fix bound check code with '&' on local variables (currently done |
| @@ -154,8 +154,28 @@ Set the path where the tcc internal libraries can be found (default is · 153 unmodified lines | ||
| 154 | 154 | @item -bench |
| 155 | 155 | Output compilation statistics. |
| 156 | 156 | |
| 157 | −@item -run | |
| 158 | −Run compiled source. | |
| 157 | +@item -run source [args...] | |
| 158 | + | |
| 159 | +Compile file @var{source} and run it with the command line arguments | |
| 160 | +@var{args}. In order to be able to give more than one argument to a | |
| 161 | +script, several TCC options can be given @emph{after} the | |
| 162 | +@option{-run} option, separated by spaces. Example: | |
| 163 | + | |
| 164 | +@example | |
| 165 | +tcc "-run -L/usr/X11R6/lib -lX11" ex4.c | |
| 166 | +@end example | |
| 167 | + | |
| 168 | +In a script, it gives the following header: | |
| 169 | + | |
| 170 | +@example | |
| 171 | +#!/usr/local/bin/tcc -run -L/usr/X11R6/lib -lX11 | |
| 172 | +#include <stdlib.h> | |
| 173 | +int main(int argc, char **argv) | |
| 174 | +@{ | |
| 175 | + ... | |
| 176 | +@} | |
| 177 | +@end example | |
| 178 | + | |
| 159 | 179 | @end table |
| 160 | 180 | |
| 161 | 181 | Preprocessor options: |