An open API service indexing awesome lists of open source software.

https://github.com/hellerve/cj

[WIP] A simple x86 JIT framework for C
https://github.com/hellerve/cj

Last synced: about 1 year ago
JSON representation

[WIP] A simple x86 JIT framework for C

Awesome Lists containing this project

README

          

# cj

**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):

```c
#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);
}
```