Skip to content

QcO-dev/bf-jit-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JIT Compiler for Brainf*ck

What is says on the tin.

Compiling

$ gcc ./bfjit.c ./asm.c -o ./bfjit

Running (Hello World)

Save this program to hello.bf:

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
$ ./bfjit ./hello.bf
> Hello World!

More examples can be found here.

Disassembly

Dump the compiled machine code to a file:

$ ./bfjit ./hello.bf ./tmp.bin

Then see the disassembly:

$ ./disasm.sh ./tmp.bin

About

JIT Compiler for Esoteric language Brainf*ck

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published