Nothing much to show for yet.
A small JIT framework written in C, targeting x86.
This works already (ret
and nop
are in fact the only instructions that work
as of yet):
#include "register.h"
#include "op.h"
int main() {
cj_ctx* cj = create_cj_ctx();
cj_nop(cj);
cj_ret(cj);
cj_fn f = create_cj_fn(cj);
f();
destroy_cj_fn(cj, f);
destroy_cj_ctx(cj);
}