Skip to content

CodeSteak/Bf2nasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bf2nasm

Bf2nasm is a small Brainfuck to x86_64 compiler, written in Elixir. It outputs x86_64 assembly for Linux in nasm syntax, compiles it using yasm and finally links it using ld. Support for other Operating systems is currently not planned.

Performance should be comparable to other Brainfuck compilers.

Dependencies

For using it you need to have yasm installed.

Building

$ git clone https://github.com/CodeSteak/Bf2nasm
$ cd Bf2nasm
$ mix escript.build

Usage

$ echo '++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>'\
       '.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.' > hello.bf
$ ./bf2nasm hello.bf -o hello
$ ./hello

About

A small Brainfuck compiler written in Elixir.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages