Forth and threading

Lars Brinkhoff lars at nocrew.org
Sat Apr 30 09:36:40 CDT 2016


"Jecel Assumpcao Jr." <jecel at merlintec.com> writes:
>> I liked Forth when it was still threaded. You got the DOES> feature.
>> Do you still have that with the FORTH chips?
> All Forth implementations are threaded, but there are several kinds:
> direct, indirect, token and subroutine.

Not all.  Many modern Forth compilers generate optimised machine code
directly.  I.e. they have the usual compiler techniques such as register
allocation, inlining, constant folding etc.


More information about the cctalk mailing list