Skip to content

hellerve/cj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cj

Nothing much to show for yet.

A small JIT framework written in C, targeting x86.

This works already (ret and nopare 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);
}

About

[WIP] A simple x86 JIT framework for C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published