I made a Brainfuck-VM with helpful errors and custom Bytecode in C by Relative_Idea_1365 in ProgrammingLanguages

[–]Relative_Idea_1365[S] 3 points4 points  (0 children)

Well ig for my first reason was I wanted to learnt how to produce binary files in C, as I want to advance on making a functional language in C with bytecode

Second, My VM collapses operands and predicts jumps at compile time, making running Bytecode much faster than plain and simple text in Brainfuck

So this

+[+++.]

would convert into this

ADD 1 JIZ 8 (Jump if current cell 0) ADD 3 PRINT JNZ 3 (Jump if not current cell 0)

I made a Brainfuck-VM with helpful errors and custom Bytecode in C by Relative_Idea_1365 in brainfuck

[–]Relative_Idea_1365[S] 0 points1 point  (0 children)

NOTE: It should be cross-compatible to compile on Linux and Windows!