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
?
Asked
Active
Viewed 282 times
-2

Cozer
- 15
- 5
-
Brainfuck is usually interpreted, not compiled. If you found a compiler for it, check its documentation. – Stephen Newell Jan 11 '22 at 22:57
-
did you read the [taginfo](https://stackoverflow.com/tags/brainfuck/info)? – jps Jan 11 '22 at 22:58
1 Answers
0
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

Cozer
- 15
- 5
-
Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jan 12 '22 at 04:24