forked from KolibriOS/kolibrios
b7fe2ec210
git-svn-id: svn://kolibrios.org@7172 a494cfbc-eb01-0410-851d-a64ba20cac60
50 lines
2.0 KiB
Plaintext
50 lines
2.0 KiB
Plaintext
Siemargl port comments
|
|
|
|
Used github branch https://github.com/TinyCC/tinycc
|
|
It have a vesion 0.9.26 with heads up to 0.9.27 - see ChangeLog
|
|
|
|
Kolibri version specifics
|
|
errata/changelog - moved to trunk/readme.txt
|
|
|
|
-added TCC_TARGET_MEOS as needed
|
|
-leading_underscore by default is 0 (can use -f[no-]leading-underscore),
|
|
otherwise (error) underscoring all symbols, not only cdecl
|
|
-added message in tccmeos.c about missed symbols when linking KOS executable
|
|
-start.o added automatically, when -nostdlib not used
|
|
-to use standard ktcc lib must add -lck at commandline
|
|
-default search paths are ./include ./lib from executable (under KOS need to
|
|
use -Bpath_to_ktcc and put start.o in current dir)
|
|
-when config.h is ready, compiler can be easy builded as [kos32-]gcc tcc.c libtcc.c
|
|
see also makefile.kos32
|
|
-impossible using with mingw-gcc compiled lib, incompatible library format:
|
|
.o is PE-format from gcc but ELF from tcc, may be linux-gcc does it ok
|
|
-__fastcall incompatible with other compilers. now stack freed by caller.
|
|
must fix i386-gen.c@490,572 (fixed in other branch https://github.com/mirror/tinycc)
|
|
|
|
|
|
-using __attribute__((packed)) see test82. need naming struct twice as in kos32sys1.h
|
|
-using __attribute__ ((alias xxx)) restricted only for non "static inline" functions
|
|
-erroneous or "non TCC" member using in nested structs or unions can lead to compiler internal error
|
|
-bench timing coarse (0s or 1s), no usec in newlib gettimeofday. OK
|
|
|
|
Tests status:
|
|
asmtest +
|
|
abitest not tested (embedding compiler)
|
|
libtcctest not tested (embedding compiler)
|
|
boundtest ----- alloca removed from tcc libtcc.c:945 (really not worked)
|
|
tcctest most test ok, some problems with long double
|
|
vla_test.c +
|
|
|
|
pp/* + (minor comment error in 13.s)
|
|
|
|
tests2/* : see below
|
|
|
|
// errata
|
|
skippin' tests
|
|
test76 fail dollars in identifiers
|
|
test34 fail (array assignment not supported)
|
|
test73 fail compile (no stdint.h), printfloat, ARM specific
|
|
test46 no stdin - removed funtionality read from console, but file ops works
|
|
|
|
|