/tinyjit

[deprecated]A jit libraryextract and enhance from the tinycc compiler backend.

Primary LanguageC

tinyjit

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.

  1. gfunc_prolog,gfunc_epilog work diferently. see xxx-gen.h

  2. some struct,constant work differently. see tccdef.h

  3. 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.

TODO:

More test.

Float-integer conversions.

Eliminate compile warning.

Optimize function prologue.

Implement arm64 data relocation.

How to use

See test.c and the header files for help.