Forth Compiler

The compiler for ForthLanguage.

In the 1970s and 80s, most Forths were implemented as a ThreadedInterpretiveLanguage, which is the fastest method of interpretation. In the 1990s, machine code generating Forth's, using various degrees of optimization, became popular.

Forth has a continuum of implementation techniques spanning threaded interpreted up to machine code optimized compilation. Having the compiler and interpreter intermingled tends to blur the distinction. There are half a dozen different major implementation modes, and each can have varying degrees of optimization. For instance, although gforth (GNU forth) remains threaded for portability reasons, it uses dynamic superinstructions to garner a 2-3 times speedup. (For more in superinstructions, see http://www.complang.tuwien.ac.at/anton/vmgen/html-docs/Superinstructions.html and http://www.complang.tuwien.ac.at/forth/gforth/Docs-html/Dynamic-Superinstructions.html.)
CategoryForth CategoryCompilers

EditText of this page (last edited June 28, 2006) or FindPage with title or text search