Tinyjit is a tiny jit engine.
These code is partly fork from tinycc So the APIs are seemed like tinycc. But there are some differents.
-
gfunc_prolog,gfunc_epilog work diferently. see xxx-gen.h
-
some struct,constant work differently. see tccdef.h
-
extract a little part of tccelf. library will only support a simple subset of elf format.
Now this project is incomplete. the arm, aarch64(arm64), i386, x86_64 backend can be used but have not been completely tested, and float-integer conversions are almost broken.
the RISC-V backend have not been ported.
More test.
Float-integer conversions.
Eliminate compile warning.
Optimize function prologue.
Implement arm64 data relocation.
See test.c and the header files for help.