mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 23:54:16 +08:00
On an armeabi-v7a device (phone) in the termux app with
clang & make installed this passes all the tests.
Can be used as a cross compiler to create "native apps" as well.
Example 'config-extra.mak' for the cross arm-eabi-tcc:
SYSROOT = <path_to_android_ndk...>/sysroot/usr
TRIPLET = arm-linux-androideabi
ANDRVER = 32
ROOT-arm-eabi = $(SYSROOT)
CRT-arm-eabi = {R}/lib/$(TRIPLET)/$(ANDRVER)
LIB-arm-eabi = {B};{R}/lib/$(TRIPLET)/$(ANDRVER);{R}/lib/$(TRIPLET)
INC-arm-eabi = {B}/lib/include;{R}/include/$(TRIPLET);{R}/include
DEF-arm-eabi = -DTCC_TARGET_ARM -DTCC_ARM_VFP -DTCC_ARM_EABI
DEF-arm-eabi += -DTARGETOS_ANDROID -DCONFIG_TCC_PIE -DCONFIG_NEW_DTAGS
DEF-arm-eabi += -DCONFIG_TCC_ELFINTERP=\"/system/bin/linker\"
# on unix replace ';' by ':'.
$ ./configure && make cross-arm-eabi && make install
|
||
|---|---|---|
| .. | ||
| alloca-bt.S | ||
| alloca.S | ||
| armeabi.c | ||
| armflush.c | ||
| bcheck.c | ||
| bt-dll.c | ||
| bt-exe.c | ||
| bt-log.c | ||
| dsohandle.c | ||
| fetch_and_add.S | ||
| lib-arm64.c | ||
| libtcc1.c | ||
| Makefile | ||
| stdatomic.c | ||
| tcov.c | ||
| va_list.c | ||