History

update

bellard committed 24 years ago

Commit bc427f51 parent 540d3183 files · +38 −21Browse files

Unified · Split

3 files
  1. Makefile +18 −15
  2. TODO +8 −5
  3. tcc-doc.texi +12 −1
Makefile+18−15
@@ -12,7 +12,7 @@ CFLAGS+=-m386 -malign-functions=0 · 11 unmodified lines
1212 CFLAGS+=-DCONFIG_TCC_PREFIX=\"$(prefix)\"
1313 DISAS=objdump -d
1414 INSTALL=install
15−VERSION=0.9.10
15+VERSION=0.9.11
1616
1717 # run local version of tcc with local libraries and includes
1818 TCC=./tcc -B. -I.
@@ -117,7 +117,7 @@ bcheck.o: bcheck.c · 98 unmodified lines
117117
118118 install: tcc libtcc1.o bcheck.o
119119 $(INSTALL) -m755 tcc $(prefix)/bin
120− $(INSTALL) tcc.1 $(prefix)/share/man/man1
120+ $(INSTALL) tcc.1 $(prefix)/man/man1
121121 mkdir -p $(prefix)/lib/tcc
122122 mkdir -p $(prefix)/lib/tcc/include
123123 $(INSTALL) -m644 libtcc1.o bcheck.o $(prefix)/lib/tcc
@@ -179,21 +179,24 @@ instr.o: instr.S · 55 unmodified lines
179179 tcc-doc.html: tcc-doc.texi
180180 texi2html -monolithic -number $<
181181
182+FILES= Makefile Makefile.uClibc \
183+ README TODO COPYING \
184+ Changelog tcc-doc.texi tcc-doc.html \
185+ tcc.1 \
186+ tcc.c i386-gen.c tccelf.c tcctok.h \
187+ bcheck.c libtcc1.c \
188+ il-opcodes.h il-gen.c \
189+ elf.h stab.h stab.def \
190+ stddef.h stdarg.h stdbool.h float.h \
191+ tcclib.h libtcc.h libtcc_test.c \
192+ ex1.c ex2.c ex3.c ex4.c ex5.c \
193+ tcctest.c boundtest.c
194+
182195 FILE=tcc-$(VERSION)
183196
184197 tar:
185198 rm -rf /tmp/$(FILE)
186− cp -r ../tcc /tmp/$(FILE)
187− ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz \
188− $(FILE)/Makefile $(FILE)/Makefile.uClibc \
189− $(FILE)/README $(FILE)/TODO $(FILE)/COPYING \
190− $(FILE)/Changelog $(FILE)/tcc-doc.texi $(FILE)/tcc-doc.html \
191− $(FILE)/tcc.1 \
192− $(FILE)/tcc.c $(FILE)/i386-gen.c $(FILE)/tccelf.c $(FILE)/tcctok.h \
193− $(FILE)/bcheck.c $(FILE)/libtcc1.c \
194− $(FILE)/il-opcodes.h $(FILE)/il-gen.c \
195− $(FILE)/elf.h $(FILE)/stab.h $(FILE)/stab.def \
196− $(FILE)/stddef.h $(FILE)/stdarg.h $(FILE)/stdbool.h $(FILE)/float.h \
197− $(FILE)/tcclib.h $(FILE)/libtcc.h $(FILE)/libtcc_test.c \
198− $(FILE)/ex*.c $(FILE)/tcctest.c $(FILE)/boundtest.c )
199+ mkdir -p /tmp/$(FILE)
200+ cp -P $(FILES) /tmp/$(FILE)
201+ ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) )
199202 rm -rf /tmp/$(FILE)
TODO+8−5
@@ -1,15 +1,18 @@
11 TODO list:
22
3−- add separate symbol/offset handling (= fix some constant
4− initialisation bugs)
5−- setjmp is not supported properly in bound checking.
3+- fix constant error msg
4+- add alloca()
5+- add typeof()
6+- add checks for multiple including of same file (= compile even faster)
67 - add 'CType' structure to optimize type handling (= compile even faster)
78 - suppress unneeded hash table for Symbols (= compile even faster)
8−- add checks for multiple including of same file (= compile even faster)
9+- ignore at least asm extension
10+- setjmp is not supported properly in bound checking.
911 - better local variables handling (needed for other targets)
1012 - fix bound check code with '&' on local variables (currently done
1113 only for local arrays).
12−- To check: bound checking and float/long long/struct copy code
14+- To check: bound checking and float/long long/struct copy code. bound
15+ checking and symbol + offset optimization
1316 - To fix: 'sizeof' generate code if too complex expression is given.
1417 - free all allocated data and use longjmp for errors (useful for libtcc use)
1518
tcc-doc.texi+12−1
@@ -67,9 +67,12 @@ Compile a.c and b.c, link them and generate the executable myprog. · 66 unmodified lines
6767 @item tcc -o myprog a.o b.o
6868 link a.o and b.o together and generate the executable myprog.
6969
70−@item tcc -c -o a.o a.c
70+@item tcc -c a.c
7171 Compile a.c and generate object file a.o
7272
73+@item tcc -r -o ab.o a.c b.c
74+Compile a.c and b.c, link them together and generate the object file ab.o.
75+
7376 @end table
7477
7578 Scripting:
@@ -163,6 +166,10 @@ must also be given). · 87 unmodified lines
163166 Generate a statically linked executable (default is a shared linked
164167 executable) (@samp{-o} option must also be given).
165168
169+@item -r
170+Generate an object file combining all input files (@samp{-o} option must
171+also be given).
172+
166173 @end table
167174
168175 @chapter C language support
@@ -309,6 +316,10 @@ generate function @code{'my_add'} in section @code{.mycodesection}. · 140 unmodified lines
309316 dprintf("one arg %d\n", 1);
310317 @end example
311318
319+@item @code{__FUNCTION__} is interpreted as C99 @code{__func__}
320+(so it has not exactly the same semantics as string literal GNUC
321+where it is a string literal).
322+
312323 @end itemize
313324
314325 @section TinyCC extensions

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t