History

update

bellard committed 24 years ago

Commit 10f5d441 parent 37489753 files · +29 −26Browse files

Unified · Split

3 files
  1. Makefile +1 −1
  2. TODO +4 −4
  3. tcc-doc.texi +24 −21
Makefile+1−1
@@ -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.11
15+VERSION=0.9.12
1616
1717 # run local version of tcc with local libraries and includes
1818 TCC=./tcc -B. -I.
TODO+4−4
@@ -1,11 +1,12 @@
11 TODO list:
22
3+- To fix: 'sizeof' generates code if too complex expression is given.
4+- add gcc extension typeof()
5+- add gcc extension __alignof__()
36 - fix constant error msg
4−- add alloca()
5−- add typeof()
6−- add checks for multiple including of same file (= compile even faster)
77 - add 'CType' structure to optimize type handling (= compile even faster)
88 - suppress unneeded hash table for Symbols (= compile even faster)
9+- add alloca()
910 - ignore at least asm extension
1011 - setjmp is not supported properly in bound checking.
1112 - better local variables handling (needed for other targets)
@@ -13,7 +14,6 @@ TODO list: · 1 unmodified line
1314 only for local arrays).
1415 - To check: bound checking and float/long long/struct copy code. bound
1516 checking and symbol + offset optimization
16−- To fix: 'sizeof' generate code if too complex expression is given.
1717 - free all allocated data and use longjmp for errors (useful for libtcc use)
1818
1919 Not critical:
tcc-doc.texi+24−21
@@ -658,24 +658,20 @@ index (@code{REG_xxx} constants), but additionnal values and flags are · 657 unmodified lines
658658 defined:
659659
660660 @example
661−#define VT_CONST 0x00f0 /* constant in vc
662− (must be first non register value) */
663−#define VT_LLOCAL 0x00f1 /* lvalue, offset on stack */
664−#define VT_LOCAL 0x00f2 /* offset on stack */
665−#define VT_CMP 0x00f3 /* the value is stored in processor flags (in vc) */
666−#define VT_JMP 0x00f4 /* value is the consequence of jmp true (even) */
667−#define VT_JMPI 0x00f5 /* value is the consequence of jmp false (odd) */
668−#define VT_LVAL 0x0100 /* var is an lvalue */
669−#define VT_FORWARD 0x0200 /* value is forward reference */
670−#define VT_MUSTCAST 0x0400 /* value must be casted to be correct (used for
671− char/short stored in integer registers) */
672−#define VT_MUSTBOUND 0x0800 /* bound checking must be done before
673− dereferencing value */
674−#define VT_BOUNDED 0x8000 /* value is bounded. The address of the
675− bounding function call point is in vc */
676−#define VT_LVAL_BYTE 0x1000 /* lvalue is a byte */
677−#define VT_LVAL_SHORT 0x2000 /* lvalue is a short */
678−#define VT_LVAL_UNSIGNED 0x4000 /* lvalue is unsigned */
661+#define VT_CONST 0x00f0
662+#define VT_LLOCAL 0x00f1
663+#define VT_LOCAL 0x00f2
664+#define VT_CMP 0x00f3
665+#define VT_JMP 0x00f4
666+#define VT_JMPI 0x00f5
667+#define VT_LVAL 0x0100
668+#define VT_SYM 0x0200
669+#define VT_MUSTCAST 0x0400
670+#define VT_MUSTBOUND 0x0800
671+#define VT_BOUNDED 0x8000
672+#define VT_LVAL_BYTE 0x1000
673+#define VT_LVAL_SHORT 0x2000
674+#define VT_LVAL_UNSIGNED 0x4000
679675 #define VT_LVAL_TYPE (VT_LVAL_BYTE | VT_LVAL_SHORT | VT_LVAL_UNSIGNED)
680676 @end example
681677
@@ -692,7 +688,10 @@ stack. · 10 unmodified lines
692688 @item VT_CMP
693689 indicates that the value is actually stored in the CPU flags (i.e. the
694690 value is the consequence of a test). The value is either 0 or 1. The
695−actual CPU flags used is indicated in @code{SValue.c.i}.
691+actual CPU flags used is indicated in @code{SValue.c.i}.
692+
693+If any code is generated which destroys the CPU flags, this value MUST be
694+put in a normal register.
696695
697696 @item VT_JMP
698697 @itemx VT_JMPI
@@ -702,6 +701,10 @@ indicates that the value is the consequence of a jmp. For VT_JMP, it is · 3 unmodified lines
702701 These values are used to compile the @code{||} and @code{&&} logical
703702 operators.
704703
704+If any code is generated, this value MUST be put in a normal
705+register. Otherwise, the generated code won't be executed if the jump is
706+taken.
707+
705708 @item VT_LVAL
706709 is a flag indicating that the value is actually an lvalue (left value of
707710 an assignment). It means that the value stored is actually a pointer to
@@ -724,8 +727,8 @@ ASAP because its semantics are rather complicated. · 16 unmodified lines
724727 indicates that a cast to the value type must be performed if the value
725728 is used (lazy casting).
726729
727−@item VT_FORWARD
728−indicates that the value is a forward reference to a variable or a function.
730+@item VT_SYM
731+indicates that the symbol @code{SValue.sym} must be added to the constant.
729732
730733 @item VT_MUSTBOUND
731734 @itemx VT_BOUNDED

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