Unified · Split
| @@ -9,11 +9,11 @@ LIBS=-ldl · 8 unmodified lines | |||
| 9 | CFLAGS_P=$(CFLAGS) -pg -static -DCONFIG_TCC_STATIC | 9 | CFLAGS_P=$(CFLAGS) -pg -static -DCONFIG_TCC_STATIC |
| 10 | LIBS_P= | 10 | LIBS_P= |
| 11 | 11 | ||
| 12 | CFLAGS+=-m386 -malign-functions=0 | 12 | CFLAGS+=-m386 -malign-functions=0 -mpreferred-stack-boundary=2 |
| 13 | CFLAGS+=-DCONFIG_TCC_PREFIX=\"$(prefix)\" | 13 | CFLAGS+=-DCONFIG_TCC_PREFIX=\"$(prefix)\" |
| 14 | DISAS=objdump -d | 14 | DISAS=objdump -d |
| 15 | INSTALL=install | 15 | INSTALL=install |
| 16 | VERSION=0.9.14 | 16 | VERSION=0.9.15 |
| 17 | 17 | ||
| 18 | # run local version of tcc with local libraries and includes | 18 | # run local version of tcc with local libraries and includes |
| 19 | TCC=./tcc -B. -I. | 19 | TCC=./tcc -B. -I. |
| @@ -164,6 +164,9 @@ libtcc.a: libtcc.o · 144 unmodified lines | |||
| 164 | libtcc_test: libtcc_test.c libtcc.a | 164 | libtcc_test: libtcc_test.c libtcc.a |
| 165 | gcc $(CFLAGS) -I. -o $@ $< -L. -ltcc -ldl | 165 | gcc $(CFLAGS) -I. -o $@ $< -L. -ltcc -ldl |
| 166 | 166 | ||
| 167 | libtest: libtcc_test | ||
| 168 | ./libtcc_test | ||
| 169 | |||
| 167 | # targets for development | 170 | # targets for development |
| 168 | 171 | ||
| 169 | %.bin: %.c tcc | 172 | %.bin: %.c tcc |
| @@ -35,6 +35,11 @@ Documentation: · 34 unmodified lines | |||
| 35 | Type 'make install' to compile and install tcc in /usr/local/bin and | 35 | Type 'make install' to compile and install tcc in /usr/local/bin and |
| 36 | /usr/local/lib/tcc. | 36 | /usr/local/lib/tcc. |
| 37 | 37 | ||
| 38 | Or type 'make all' to only compile it. | ||
| 39 | |||
| 40 | Type 'make libinstall' to compile and install libtcc. | ||
| 41 | Or type 'make libtcc_test' to only compile it. | ||
| 42 | |||
| 38 | 2) Introduction | 43 | 2) Introduction |
| 39 | 44 | ||
| 40 | We assume here that you know ANSI C. Look at the example ex1.c to know | 45 | We assume here that you know ANSI C. Look at the example ex1.c to know |
| @@ -68,7 +73,7 @@ ex5.c: 'hello world' with standard glibc headers. · 27 unmodified lines | |||
| 68 | tcc.c: TCC can of course compile itself. Used to check the code | 73 | tcc.c: TCC can of course compile itself. Used to check the code |
| 69 | generator. | 74 | generator. |
| 70 | 75 | ||
| 71 | prog.c: auto test for TCC which tests many subtle possible bugs. Used | 76 | tcctest.c: auto test for TCC which tests many subtle possible bugs. Used |
| 72 | when doing 'make test'. | 77 | when doing 'make test'. |
| 73 | 78 | ||
| 74 | 4) Full Documentation | 79 | 4) Full Documentation |
| @@ -1,12 +1,15 @@ | |||
| 1 | TODO list: | 1 | TODO list: |
| 2 | 2 | ||
| 3 | - finish varargs.h support | 3 | - add statment expressions (linux kernel compilation) |
| 4 | - implement minimal 'asm' extension (linux kernel compilation) | ||
| 5 | - handle static inline, then normal prototype. | ||
| 6 | - support link once trick (gcc 3.2 / glibc compilation issue) | ||
| 7 | - finish varargs.h support (gcc 3.2 testsuite issue) | ||
| 4 | - add alloca() | 8 | - add alloca() |
| 5 | - fix static functions declared inside block | 9 | - fix static functions declared inside block |
| 6 | - fix bitfield binary operations | 10 | - fix bitfield binary operations |
| 7 | - C99: add variable size arrays | 11 | - C99: add variable size arrays (gcc 3.2 testsuite issue) |
| 8 | - C99: add complex types | 12 | - C99: add complex types (gcc 3.2 testsuite issue) |
| 9 | - GCC: add statment expressions | ||
| 10 | - ignore __extension__ keyword (see 20010328-1.c). | 13 | - ignore __extension__ keyword (see 20010328-1.c). |
| 11 | - Add __restrict keyword (20010611-1.c). | 14 | - Add __restrict keyword (20010611-1.c). |
| 12 | - postfix compound literals (see 20010124-1.c) | 15 | - postfix compound literals (see 20010124-1.c) |
| @@ -17,7 +20,6 @@ TODO list: · 4 unmodified lines | |||
| 17 | - test includes in libtcc_test. | 20 | - test includes in libtcc_test. |
| 18 | - look at GCC 3.2 compatibility problems. | 21 | - look at GCC 3.2 compatibility problems. |
| 19 | - add option for auto run | 22 | - add option for auto run |
| 20 | - implement minimal 'asm' extension | ||
| 21 | - setjmp is not supported properly in bound checking. | 23 | - setjmp is not supported properly in bound checking. |
| 22 | - better local variables handling (needed for other targets) | 24 | - better local variables handling (needed for other targets) |
| 23 | - fix bound check code with '&' on local variables (currently done | 25 | - fix bound check code with '&' on local variables (currently done |