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
- Host: GitHub
- URL: https://github.com/hellerve/cj
- Owner: hellerve
- Created: 2018-12-13T16:15:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-14T13:04:23.000Z (over 7 years ago)
- Last Synced: 2025-02-28T07:54:59.051Z (about 1 year ago)
- Language: C
- Size: 10.7 KB
- Stars: 7
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
}
```