Yes, me and my team did it. We compiled doom from C to risc-v using gcc compiler, and then compiled risc-v assembly to brainfuck by our python-written compiler. And we created a very fast bf interpreter, that can run on a huge tape with more a than million cells. And it reads a compressed bf file, because doom in extracted format weights more than 3 terabytes! I made operations with memory in my risc-v to bf compiler too huge. I could make it shorter, but running time will be slower. Anyway, doom is working.
It would be so cool to see doom programmed in brainfuck actually running although you would probably have to do a lot of optimizations and compile it for it to print at least 1 frame in one week XD
still working on it. the deadline hasn’t changed, although, now, it’s more like 2months from my initial message, due to my work taking lots of my time lately.
Glad someone is still interested. Yes, the whole project has already been thought out, and it is clear how every aspect will work. The only thing I'm missing is time.. but I am slowly finishing it)
Practically none, unfortunately. Even the best C compiler we have, C2BF, practically emulates an entire stack and heap on the tape and it's absurdly complicated the way it works.
I'd recommend a language that was specifically made to support something like Brainfuck.
1
u/[deleted] Dec 06 '19
I/Someone could port it to my brainfuck assembly or the C compiler (deadly slow though) in spare time
1
u/Significant-Whole460 Jul 31 '26
Yes, me and my team did it. We compiled doom from C to risc-v using gcc compiler, and then compiled risc-v assembly to brainfuck by our python-written compiler. And we created a very fast bf interpreter, that can run on a huge tape with more a than million cells. And it reads a compressed bf file, because doom in extracted format weights more than 3 terabytes! I made operations with memory in my risc-v to bf compiler too huge. I could make it shorter, but running time will be slower. Anyway, doom is working.
Repository (readme is in russian, sorry): https://github.com/sit-itmo/DoomBF
1
u/lil_doggo_078 Dec 24 '21
It would be so cool to see doom programmed in brainfuck actually running although you would probably have to do a lot of optimizations and compile it for it to print at least 1 frame in one week XD
0
u/[deleted] Dec 05 '19
[deleted] — view deleted comment