[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] mob is broken for ARM/ARM64 [make tcc reentrant]
From: |
Christian Jullien |
Subject: |
[Tinycc-devel] mob is broken for ARM/ARM64 [make tcc reentrant] |
Date: |
Wed, 11 Dec 2019 07:35:23 +0100 |
Hi guys,
Testing mod show that ARM and Aarch64 are broken differently. I'm reluctant to
test it only Windows as it will break my Lisp development toolchain.
=== For ARM
gcc -o libtcc_test_mt libtcc_test_mt.c ../libtcc.a -fno-strict-aliasing -I..
-I. . -lm -lpthread
-ldl
libtcc_test_mt.c: In function ‘sleep_ms’:
libtcc_test_mt.c:51:5: warning: implicit declaration of function ‘usleep’; did
y ou mean ‘fseek’?
[-Wimplicit-function-declaration]
usleep(n * 1000);
^~~~~~
fseek
libtcc_test_mt.c: In function ‘getclock_ms’:
libtcc_test_mt.c:236:5: warning: implicit declaration of function
‘gettimeofday’
[-Wimplicit-function-declaration]
gettimeofday(&tv, NULL);
^~~~~~~~~~~~
------------ libtest_mt ------------
./libtcc_test_mt -B.. -I../include -I.. -I..
----- libtest : mixed calls -------
1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946
(25 ms)
----- libtest : threads ------------
1 8 2 3 144 34 13 89 377 987 2584 4181 233 5 610 1597 6765 55 10946 21
(21 ms)
----- libtest : tcc in threads -----
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
(927 ms)
----- compilation of tcc -----------
In file included from ../tcc.c:21:
In file included from ../tcc.h:348:
../arm-gen.c:27: error: #error "Currently TinyCC only supports float
computation with
VFP instructions"
(4 ms)
=== For Aarch64
libtcc_test_mt.c:51:5: warning: implicit declaration of function ‘usleep’
[-Wimplicit-function-declaration]
51 | usleep(n * 1000);
| ^~~~~~
libtcc_test_mt.c: In function ‘getclock_ms’:
libtcc_test_mt.c:236:5: warning: implicit declaration of function
‘gettimeofday’ [-Wimplicit-function-declaration]
236 | gettimeofday(&tv, NULL);
| ^~~~~~~~~~~~
------------ libtest_mt ------------
./libtcc_test_mt -B.. -I../include -I.. -I..
----- libtest : mixed calls -------
1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946
(41 ms)
----- libtest : threads ------------
3 2 1 5 8 13 21 34 144 233 55 2584 89 610 987 377 1597 6765 4181 10946
(31 ms)
----- libtest : tcc in threads -----
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
tcc: error: library 'c' not found
(4471 ms)
- [Tinycc-devel] mob is broken for ARM/ARM64 [make tcc reentrant],
Christian Jullien <=