BrainForked
所属分类:人工智能/神经网络/深度学习
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2020-08-30 14:45:29
上 传 者:
sh-1993
说明: C++11中的快速BF解释器,
(Fast BF interpreter in C++11,)
文件列表:
LICENSE (1069, 2020-08-30)
Makefile (358, 2020-08-30)
bf.hpp (1076, 2020-08-30)
bf_instruction.cpp (1237, 2020-08-30)
bf_io.cpp (970, 2020-08-30)
bf_main.cpp (6169, 2020-08-30)
bf_optimizations.cpp (4809, 2020-08-30)
mandelbrot.bf (11712, 2020-08-30)
# BrainForked - Fast BF interpreter in C++11
This is almost standard C++, except for the use of clang++/g++ computed labels extension. At the
time of writing (Aug 2020), it is the fastest non-JIT interpreter for the commonly referenced mandelbrot and hanoi
BF programs.
For a clear explanation of the computed labels, see the slower but more lucid code in
https://github.com/JohnCGriffin/BF-computed-goto.
## Building
Step 1 - The Makefile is set to use **clang++**. Change to **g++** if you prefer.
Step 2 - On a Unix machine, use ```make```.
Step 3 - ```make test``` to try it on the included mandelbrot.bf,
a common exercise in BF land.
近期下载者:
相关文件:
收藏者: