aboutsummaryrefslogtreecommitdiff
path: root/lib/lib-arm64.c
diff options
context:
space:
mode:
authorgrischka <grischka>2017-02-23 08:41:57 +0100
committergrischka <grischka>2017-02-23 08:41:57 +0100
commit569255e6c40f45a0d78b409c05353d4c1de6ca43 (patch)
tree5ec1e51fe2a233d74d5570af8fb62ac41fd25989 /lib/lib-arm64.c
parent576bee9a37cbe53227a27308a1b8ccc25e9b0e35 (diff)
downloadtinycc-569255e6c40f45a0d78b409c05353d4c1de6ca43.tar.gz
tinycc-569255e6c40f45a0d78b409c05353d4c1de6ca43.tar.bz2
cross-compilers: allow individual configuration
since configure supports only native configuration a file 'cross-tcc.mak' needs to be created manually. It is included in the Makefile if present. # ---------------------------------------------------- # Example config-cross.mak: # # windows -> i386-linux cross-compiler # (it expects the linux files in <prefix>/i386-linux) ROOT-i386 = {B}/i386-linux CRT-i386 = $(ROOT-i386)/usr/lib LIB-i386 = $(ROOT-i386)/lib:$(ROOT-i386)/usr/lib INC-i386 = {B}/lib/include:$(ROOT-i386)/usr/include DEF-i386 += -D__linux__ # ---------------------------------------------------- Also: - use libtcc1-<target>.a instead of directories - add dummy arm assembler - remove include dependencies from armeabi.c/lib-arm64.c - tccelf/ld_add_file: add SYSROOT (when defined) to absolute filenames coming from ld-scripts
Diffstat (limited to 'lib/lib-arm64.c')
-rw-r--r--lib/lib-arm64.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/lib-arm64.c b/lib/lib-arm64.c
index 42d5936..b8fd9e8 100644
--- a/lib/lib-arm64.c
+++ b/lib/lib-arm64.c
@@ -9,8 +9,20 @@
* without any warranty.
*/
+#ifdef __TINYC__
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef short int16_t;
+typedef unsigned short uint16_t;
+typedef int int32_t;
+typedef unsigned uint32_t;
+typedef long long int64_t;
+typedef unsigned long long uint64_t;
+void *memcpy(void*,void*,__SIZE_TYPE__);
+#else
#include <stdint.h>
#include <string.h>
+#endif
void __clear_cache(void *beg, void *end)
{