Alien-TinyCCx

 view release on metacpan or  search on metacpan

src/TODO  view on Meta::CPAN

TODO list:

Bugs:

- fix macro substitution with nested definitions (ShangHongzhang)
- FPU st(0) is left unclean (kwisatz haderach). Incompatible with
  optimized gcc/msc code

- constructors
- cast bug (Peter Wang)
- define incomplete type if defined several times (Peter Wang).
- test binutils/gcc compile
- tci patch + argument.
- see -lxxx bug (Michael Charity).
- see transparent union pb in /urs/include/sys/socket.h
- precise behaviour of typeof with arrays ? (__put_user macro)
  but should suffice for most cases)
- handle '? x, y : z' in unsized variable initialization (',' is
  considered incorrectly as separator in preparser)
- transform functions to function pointers in function parameters
  (net/ipv4/ip_output.c)
- fix function pointer type display
- check lcc test suite -> fix bitfield binary operations
- check section alignment in C
- fix invalid cast in comparison 'if (v == (int8_t)v)'
- finish varargs.h support (gcc 3.2 testsuite issue)
- fix static functions declared inside block
- fix multiple unions init
- sizeof, alignof, typeof can still generate code in some cases.
- Fix the remaining libtcc memory leaks.
- make libtcc fully reentrant (except for the compilation stage itself).
- struct/union/enum definitions in nested scopes (see also Debian bug #770657)
- __STDC_IEC_559__: float f(void) { static float x = 0.0 / 0.0; return x; }

Portability:

- it is assumed that int is 32-bit and sizeof(int) == 4
- int is used when host or target size_t would make more sense
- TCC handles target floating-point (fp) values using the host's fp
  arithmetic, which is simple and fast but may lead to exceptions
  and inaccuracy and wrong representations when cross-compiling

Linking:

- static linking does not work
- with "-run" and libtcc, no PLT is used, so branches may be out of
  range and relocations may fail; as a result libtest fails on arm64; see:
  https://lists.gnu.org/archive/html/tinycc-devel/2015-03/msg00111.html

Bound checking:

- '-b' bug.
- fix bound exit on RedHat 7.3
- setjmp is not supported properly in bound checking.
- fix bound check code with '&' on local variables (currently done
  only for local arrays).
- bound checking and float/long long/struct copy code. bound
  checking and symbol + offset optimization

Missing features:

- disable-asm and disable-bcheck options
- __builtin_expect()
- improve '-E' option.
- atexit (Nigel Horne)
- packed attribute
- C99: add complex types (gcc 3.2 testsuite issue)
- postfix compound literals (see 20010124-1.c)

Optimizations:

- suppress specific anonymous symbol handling
- more parse optimizations (=even faster compilation)
- memory alloc optimizations (=even faster compilation)
- optimize VT_LOCAL + const



( run in 0.694 second using v1.01-cache-2.11-cpan-39bf76dae61 )