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
12CFLAGS+=-DCONFIG_TCC_PREFIX=\"$(prefix)\"12CFLAGS+=-DCONFIG_TCC_PREFIX=\"$(prefix)\"
13DISAS=objdump -d13DISAS=objdump -d
14INSTALL=install14INSTALL=install
15VERSION=0.9.1115VERSION=0.9.12
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.
TODO+4−4
@@ -1,11 +1,12 @@
1TODO list:1TODO list:
2 2
3- To fix: 'sizeof' generates code if too complex expression is given.
4- add gcc extension typeof()
5- add gcc extension __alignof__()
3- fix constant error msg6- fix constant error msg
4- add alloca()
5- add typeof()
6- add checks for multiple including of same file (= compile even faster)
7- add 'CType' structure to optimize type handling (= compile even faster)7- add 'CType' structure to optimize type handling (= compile even faster)
8- suppress unneeded hash table for Symbols (= compile even faster)8- suppress unneeded hash table for Symbols (= compile even faster)
9- add alloca()
9- ignore at least asm extension10- ignore at least asm extension
10- setjmp is not supported properly in bound checking.11- setjmp is not supported properly in bound checking.
11- better local variables handling (needed for other targets)12- better local variables handling (needed for other targets)
@@ -13,7 +14,6 @@ TODO list: · 1 unmodified line
13 only for local arrays).14 only for local arrays).
14- To check: bound checking and float/long long/struct copy code. bound15- To check: bound checking and float/long long/struct copy code. bound
15 checking and symbol + offset optimization16 checking and symbol + offset optimization
16- To fix: 'sizeof' generate code if too complex expression is given.
17- 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)
18 18
19Not critical:19Not critical:
tcc-doc.texi+24−21
@@ -658,24 +658,20 @@ index (@code{REG_xxx} constants), but additionnal values and flags are · 657 unmodified lines
658defined:658defined:
659 659
660@example660@example
661#define VT_CONST 0x00f0 /* constant in vc 661#define VT_CONST 0x00f0
662 (must be first non register value) */662#define VT_LLOCAL 0x00f1
663#define VT_LLOCAL 0x00f1 /* lvalue, offset on stack */663#define VT_LOCAL 0x00f2
664#define VT_LOCAL 0x00f2 /* offset on stack */664#define VT_CMP 0x00f3
665#define VT_CMP 0x00f3 /* the value is stored in processor flags (in vc) */665#define VT_JMP 0x00f4
666#define VT_JMP 0x00f4 /* value is the consequence of jmp true (even) */666#define VT_JMPI 0x00f5
667#define VT_JMPI 0x00f5 /* value is the consequence of jmp false (odd) */667#define VT_LVAL 0x0100
668#define VT_LVAL 0x0100 /* var is an lvalue */668#define VT_SYM 0x0200
669#define VT_FORWARD 0x0200 /* value is forward reference */669#define VT_MUSTCAST 0x0400
670#define VT_MUSTCAST 0x0400 /* value must be casted to be correct (used for670#define VT_MUSTBOUND 0x0800
671 char/short stored in integer registers) */671#define VT_BOUNDED 0x8000
672#define VT_MUSTBOUND 0x0800 /* bound checking must be done before672#define VT_LVAL_BYTE 0x1000
673 dereferencing value */673#define VT_LVAL_SHORT 0x2000
674#define VT_BOUNDED 0x8000 /* value is bounded. The address of the674#define VT_LVAL_UNSIGNED 0x4000
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 */
679#define VT_LVAL_TYPE (VT_LVAL_BYTE | VT_LVAL_SHORT | VT_LVAL_UNSIGNED)675#define VT_LVAL_TYPE (VT_LVAL_BYTE | VT_LVAL_SHORT | VT_LVAL_UNSIGNED)
680@end example676@end example
681 677
@@ -692,7 +688,10 @@ stack. · 10 unmodified lines
692@item VT_CMP688@item VT_CMP
693indicates that the value is actually stored in the CPU flags (i.e. the689indicates that the value is actually stored in the CPU flags (i.e. the
694value is the consequence of a test). The value is either 0 or 1. The690value is the consequence of a test). The value is either 0 or 1. The
695actual CPU flags used is indicated in @code{SValue.c.i}.691actual CPU flags used is indicated in @code{SValue.c.i}.
692
693If any code is generated which destroys the CPU flags, this value MUST be
694put in a normal register.
696 695
697@item VT_JMP696@item VT_JMP
698@itemx VT_JMPI697@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
702These values are used to compile the @code{||} and @code{&&} logical701These values are used to compile the @code{||} and @code{&&} logical
703operators.702operators.
704 703
704If any code is generated, this value MUST be put in a normal
705register. Otherwise, the generated code won't be executed if the jump is
706taken.
707
705@item VT_LVAL708@item VT_LVAL
706is a flag indicating that the value is actually an lvalue (left value of709is a flag indicating that the value is actually an lvalue (left value of
707an assignment). It means that the value stored is actually a pointer to710an 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
724indicates that a cast to the value type must be performed if the value727indicates that a cast to the value type must be performed if the value
725is used (lazy casting).728is used (lazy casting).
726 729
727@item VT_FORWARD730@item VT_SYM
728indicates that the value is a forward reference to a variable or a function.731indicates that the symbol @code{SValue.sym} must be added to the constant.
729 732
730@item VT_MUSTBOUND733@item VT_MUSTBOUND
731@itemx VT_BOUNDED734@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