bfjit
bfjit copied to clipboard
JIT Compiler for Brainfuck
I implemented a dynamic memory scheme using OS memory management functionality. I set the permissions of the pages surrounding the bf program's memory to `PROT_NONE`, so if the bf program...
I feel that it is possible to improve the `Tok_Kind` and `Op_Kind` types, as they are quite similar (perhaps a conversion function, which produces an error if the `Tok_Kind`/char is...
The generated JIT code now keeps track of a `JitMemoryInfo` object, which is just a dynamically sized array, and a function pointer which potentially resizes/reallocates the memory under the hood...