

The user has control of the inlining level, so that trade-offs between speed and space can be investigated. The result is code generation that is within 25% of hand-written assembler sequences. A set of benchmarks and further papers on the VFX optimiser are available from our downloads page.

VFX Forth includes many standard techniques from compiler theory. However, unlike other Forth code generators, VFX can optimise all data stack traffic to a mimum sequence. At its most elementary level the effect of the optimisation is impressive: : n>char \ n - char Using mainstream compiler techniques the VFX optimiser can merge many Forth words and reduce memory access to a minimum. The VFX code generator generates native code with optimisation and inlining. The v4 release includes many detailed changes to the code generator making v4 even faster than before with no increase in code size. MPE’s VFX Forth for Windows has consistently proven itself to be the fastest Windows Forth available by a considerable margin. The benchmarks to prove it are on our web site. The new technique is called “recognisers” because each section in a chain “recognises” a particular data type.

In particular, new numeric literals are easy to install into the system. The second change allows the text interpreter to be changed more easily. The new arrangement allows these to be defined more clearly and the results are completely compliant with the ANS and Forth-2012 standards. The first major change improves standards compliance for parsing words such as string definers. As usual, the code was tested on an application of 1.2 million lines of Forth source, which required only minor changes, nearly all to its myriad string defining words. Most of the changes from v4 to v5 will make only small individual improvements, but overall increase reliability and standards conformance. Not all features presented on this page are available for VFX Forth for DOS. Visit our papers page to download our VFX Flier and benchmark code and results.Ĭlick here for the VFX Forth v5 change history or here for change notes for earlier versions. Courses and consultancy – start up courses or consultancy.Support services – standard, extended and advanced technical support.System resources give you full control.Internationalisation support for multiple languages.Operating system API and shared library access.Direct access to source with LOCATE and XREF.VFX code generator – generates native code with optimisation – see the benchmark results!.ANS standard Forth with many extensions.
