The size of the smallest possible BrainFuck compiler is totaly machine dependant. Therefore, if you speak about a certain value you must always consider the architecture it is running on.
The smallest possible BrainFuck compiler is 0bytes
The architecture this compiler is running on, has the neat property of beeing able to interpret Brainfuck Sourcecode natively. It has the even neater property, that a programs output resides at the same memory locations as its input does.
The byte code of the smallest posssible BrainFuck Compiler is then: "". Since this program terminates immediately, it does not apply any modifications to the input. Therefore the output of a run from this program always equals the input from this run. Since the architecure can execute BrainFuck natively, this program turns BrainFuck Sourcecode into binary code for this architecture. The program is therefore a BrainFuck compiler for this architecture.
Real Word Architectures
Unfortunetly the architecture described above is not applicable to real world applications, but neither is BraickFuck.
发布评论
评论(1)
尽可能最小的 BrainFuck 编译器的大小完全取决于机器。因此,如果您谈论某个值,您必须始终考虑它所运行的架构。
最小的 BrainFuck 编译器是 0bytes
该编译器运行的架构具有能够本地解释 Brainfuck 源代码的巧妙特性。它具有更简洁的属性,即程序的输出与其输入驻留在相同的内存位置。
最小可能的 BrainFuck 编译器的字节码是:“”。由于该程序立即终止,因此它不会对输入进行任何修改。因此,该程序运行的输出始终等于该运行的输入。由于该架构可以本机执行 BrainFuck,因此该程序将 BrainFuck 源代码转换为该架构的二进制代码。因此,该程序是该架构的 BrainFuck 编译器。
真实世界架构
不幸的是,上述架构不适用于现实世界的应用程序,BraickFuck 也不适用于。
The size of the smallest possible BrainFuck compiler is totaly machine dependant. Therefore, if you speak about a certain value you must always consider the architecture it is running on.
The smallest possible BrainFuck compiler is 0bytes
The architecture this compiler is running on, has the neat property of beeing able to interpret Brainfuck Sourcecode natively. It has the even neater property, that a programs output resides at the same memory locations as its input does.
The byte code of the smallest posssible BrainFuck Compiler is then: "". Since this program terminates immediately, it does not apply any modifications to the input. Therefore the output of a run from this program always equals the input from this run. Since the architecure can execute BrainFuck natively, this program turns BrainFuck Sourcecode into binary code for this architecture. The program is therefore a BrainFuck compiler for this architecture.
Real Word Architectures
Unfortunetly the architecture described above is not applicable to real world applications, but neither is BraickFuck.