Search code examples
brainfuck

compiling a Brainfuck hello world program


I found this weird programming language that is an attempt to create the smallest possible compiler called brainf*ck, and i honestly want to try it but i don't have any knowlegde about how to compile the code.
Can you help me compiling a hello world program in brainf*ck?


Solution

  • I found a minimal compiler, surprisingly made by this guy in this repository.

    I made this interpreter in like 40 minutes. It's under 70 lines of code and it only uses standard libraries in C. it can be built by typing

    make
    

    you will get brainfuck.exe

    i compiled this brainfuck code
    cat.b

    ,[.,]
    

    using

    ./brainfuck.exe cat.b