aboutsummaryrefslogtreecommitdiff
path: root/tcctok.h
diff options
context:
space:
mode:
authorbellard <bellard>2002-07-22 23:37:39 +0000
committerbellard <bellard>2002-07-22 23:37:39 +0000
commit6cdecbe4e622194c5ba311d0e944a1b33a0e18a3 (patch)
tree5404af2f8e171a1079c06b090d375fdff214b7e8 /tcctok.h
parent3d902af1a912f85968d3a94aa4a831dd9765be9b (diff)
downloadtinycc-6cdecbe4e622194c5ba311d0e944a1b33a0e18a3.tar.gz
tinycc-6cdecbe4e622194c5ba311d0e944a1b33a0e18a3.tar.bz2
added runtime library - fixed more relocations
Diffstat (limited to 'tcctok.h')
-rw-r--r--tcctok.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/tcctok.h b/tcctok.h
new file mode 100644
index 0000000..d593ad7
--- /dev/null
+++ b/tcctok.h
@@ -0,0 +1,39 @@
+/* attribute identifiers */
+DEF(TOK_SECTION, "section")
+DEF(TOK___SECTION__, "__section__")
+DEF(TOK_ALIGNED, "aligned")
+DEF(TOK___ALIGNED__, "__aligned__")
+DEF(TOK_UNUSED, "unused")
+DEF(TOK___UNUSED__, "__unused__")
+DEF(TOK_CDECL, "cdecl")
+DEF(TOK___CDECL, "__cdecl")
+DEF(TOK___CDECL__, "__cdecl__")
+DEF(TOK_STDCALL, "stdcall")
+DEF(TOK___STDCALL, "__stdcall")
+DEF(TOK___STDCALL__, "__stdcall__")
+DEF(TOK_NORETURN, "noreturn")
+DEF(TOK___NORETURN__, "__noreturn__")
+
+/* builtin functions */
+DEF(TOK_memcpy, "memcpy")
+DEF(TOK_memset, "memset")
+DEF(TOK___divdi3, "__divdi3")
+DEF(TOK___moddi3, "__moddi3")
+DEF(TOK___udivdi3, "__udivdi3")
+DEF(TOK___umoddi3, "__umoddi3")
+DEF(TOK___sardi3, "__sardi3")
+DEF(TOK___shrdi3, "__shrdi3")
+DEF(TOK___shldi3, "__shldi3")
+DEF(TOK___ulltof, "__ulltof")
+DEF(TOK___ulltod, "__ulltod")
+DEF(TOK___ulltold, "__ulltold")
+DEF(TOK___fixunssfdi, "__fixunssfdi")
+DEF(TOK___fixunsdfdi, "__fixunsdfdi")
+DEF(TOK___fixunsxfdi, "__fixunsxfdi")
+DEF(TOK___bound_ptr_add, "__bound_ptr_add")
+DEF(TOK___bound_ptr_indir1, "__bound_ptr_indir1")
+DEF(TOK___bound_ptr_indir2, "__bound_ptr_indir2")
+DEF(TOK___bound_ptr_indir4, "__bound_ptr_indir4")
+DEF(TOK___bound_ptr_indir8, "__bound_ptr_indir8")
+DEF(TOK___bound_ptr_indir12, "__bound_ptr_indir12")
+DEF(TOK___bound_ptr_indir16, "__bound_ptr_indir16")