Linux 64bit用 Forth
- サブルーチン・スレッディング
- TOSをレジスタに置く
- プリミティブワードのインライン展開
$ ./RFR64ファイル読み込み
$ cat yourfile.fs - | ./RFR64$ ./RFR64
load examples.fs
( Mark&Sweep Garbage Collection Test )
gc-test
: counter: create 0 , does> dup @ . 1 swap +! ;
: [get] [compile] lit read-token find >body , [compile] @ ; immediate
: countdown begin dup 0>= while dup . 1 - repeat drop ;
counter: i
: GO! i i i i i i i i i i [get] i countdown bye ;
GO!