larsbrinkhoff / lbForth

Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js.
GNU General Public License v3.0
414 stars 113 forks source link

bench.fth may be broken #49

Closed larsbrinkhoff closed 7 years ago

larsbrinkhoff commented 7 years ago

Reported in larsbrinkhoff/forth-mode#69

larsbrinkhoff commented 7 years ago

It's not broken, but it does require that it's run from the lbForth top-level source repository directory.

E.g.

$cd .../lbForth
$./forth
lbForth
ok
include lib/bench.fth
contrib/fib.fth 0.430543902 seconds elapsed
contrib/bubble.fth 1.132055998 seconds elapsed
contrib/matrix.fth Segmentation fault (core dumped)

The crash is expected. It's due to not having enough memory. It's fixed by rebuilding lbForth with a larger dictionary space.