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
12CFLAGS+=-DCONFIG_TCC_PREFIX=\"$(prefix)\"12CFLAGS+=-DCONFIG_TCC_PREFIX=\"$(prefix)\"
13DISAS=objdump -d13DISAS=objdump -d
14INSTALL=install14INSTALL=install
15VERSION=0.9.1015VERSION=0.9.11
16 16
17# run local version of tcc with local libraries and includes17# run local version of tcc with local libraries and includes
18TCC=./tcc -B. -I.18TCC=./tcc -B. -I.
@@ -117,7 +117,7 @@ bcheck.o: bcheck.c · 98 unmodified lines
117 117
118install: tcc libtcc1.o bcheck.o118install: tcc libtcc1.o bcheck.o
119 $(INSTALL) -m755 tcc $(prefix)/bin119 $(INSTALL) -m755 tcc $(prefix)/bin
120 $(INSTALL) tcc.1 $(prefix)/share/man/man1120 $(INSTALL) tcc.1 $(prefix)/man/man1
121 mkdir -p $(prefix)/lib/tcc121 mkdir -p $(prefix)/lib/tcc
122 mkdir -p $(prefix)/lib/tcc/include122 mkdir -p $(prefix)/lib/tcc/include
123 $(INSTALL) -m644 libtcc1.o bcheck.o $(prefix)/lib/tcc123 $(INSTALL) -m644 libtcc1.o bcheck.o $(prefix)/lib/tcc
@@ -179,21 +179,24 @@ instr.o: instr.S · 55 unmodified lines
179tcc-doc.html: tcc-doc.texi179tcc-doc.html: tcc-doc.texi
180 texi2html -monolithic -number $<180 texi2html -monolithic -number $<
181 181
182FILES= 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
182FILE=tcc-$(VERSION)195FILE=tcc-$(VERSION)
183 196
184tar:197tar:
185 rm -rf /tmp/$(FILE)198 rm -rf /tmp/$(FILE)
186 cp -r ../tcc /tmp/$(FILE)199 mkdir -p /tmp/$(FILE)
187 ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz \200 cp -P $(FILES) /tmp/$(FILE)
188 $(FILE)/Makefile $(FILE)/Makefile.uClibc \201 ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) )
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 rm -rf /tmp/$(FILE)202 rm -rf /tmp/$(FILE)
TODO+8−5
@@ -1,15 +1,18 @@
1TODO list:1TODO list:
2 2
3- add separate symbol/offset handling (= fix some constant3- fix constant error msg
4 initialisation bugs)4- add alloca()
5- setjmp is not supported properly in bound checking.5- add typeof()
6- add checks for multiple including of same file (= compile even faster)
6- add 'CType' structure to optimize type handling (= compile even faster)7- add 'CType' structure to optimize type handling (= compile even faster)
7- suppress unneeded hash table for Symbols (= compile even faster)8- 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.
9- better local variables handling (needed for other targets)11- better local variables handling (needed for other targets)
10- fix bound check code with '&' on local variables (currently done12- fix bound check code with '&' on local variables (currently done
11 only for local arrays).13 only for local arrays).
12- To check: bound checking and float/long long/struct copy code14- To check: bound checking and float/long long/struct copy code. bound
15 checking and symbol + offset optimization
13- To fix: 'sizeof' generate code if too complex expression is given.16- To fix: 'sizeof' generate code if too complex expression is given.
14- free all allocated data and use longjmp for errors (useful for libtcc use)17- free all allocated data and use longjmp for errors (useful for libtcc use)
15 18
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
67@item tcc -o myprog a.o b.o67@item tcc -o myprog a.o b.o
68link a.o and b.o together and generate the executable myprog.68link a.o and b.o together and generate the executable myprog.
69 69
70@item tcc -c -o a.o a.c70@item tcc -c a.c
71Compile a.c and generate object file a.o71Compile a.c and generate object file a.o
72 72
73@item tcc -r -o ab.o a.c b.c
74Compile a.c and b.c, link them together and generate the object file ab.o.
75
73@end table76@end table
74 77
75Scripting:78Scripting:
@@ -163,6 +166,10 @@ must also be given). · 87 unmodified lines
163Generate a statically linked executable (default is a shared linked166Generate a statically linked executable (default is a shared linked
164executable) (@samp{-o} option must also be given).167executable) (@samp{-o} option must also be given).
165 168
169@item -r
170Generate an object file combining all input files (@samp{-o} option must
171also be given).
172
166@end table173@end table
167 174
168@chapter C language support175@chapter C language support
@@ -309,6 +316,10 @@ generate function @code{'my_add'} in section @code{.mycodesection}. · 140 unmodified lines
309 dprintf("one arg %d\n", 1);316 dprintf("one arg %d\n", 1);
310@end example317@end example
311 318
319@item @code{__FUNCTION__} is interpreted as C99 @code{__func__}
320(so it has not exactly the same semantics as string literal GNUC
321where it is a string literal).
322
312@end itemize323@end itemize
313 324
314@section TinyCC extensions325@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