Microcontroller Port of CBQN
perf is reporting an 0.15% increase in instruction count (what?), but that's not gonna stop me |
||
|---|---|---|
| obj | ||
| src | ||
| .gitignore | ||
| build | ||
| buildg | ||
| cc.bqn | ||
| debugBuild | ||
| genRuntime | ||
| genRuntimeSrc | ||
| LICENSE | ||
| makefile | ||
| precompiled.bqn | ||
| README.md | ||
| test.bqn | ||
Build & run (tl;dr: make; rlwrap ./BQN):
- (optional) Run
./genRuntime path/to/mlochbaum/BQN; Otherwise, the necessary precompiled bytecode will be retrieved fromremotes/origin/bytecode - If wanted, customize settings in
src/h.h make- Options:
make o3,make debug(make rtperf,make heapverifyandmake rtverifyalso exist for further testing/debugging) - Do
make cleanormake [o3|debug|…]-cleanbeforehand to force recompile ./buildand./debugBuildcompile everything at once and allow specifying extra compiler arguments, but may be slower
- Options:
./BQN(orrlwrap ./BQNfor a better REPL)
Run tests with ./BQN mlochbaum/BQN/test/this.bqn (with -noerr for a heapverify build).
Time REPL-executed safe prim tests: ./test.bqn mlochbaum/BQN -s prim > SP; time ./BQN<SP>/dev/null
Test precompiled expression: ./precompiled.bqn mlochbaum/BQN "$PATH" '2+2'
Any file without an explicit copyright message is copyright (c) 2021 dzaima, GNU GPLv3 - see LICENSE