kForth Updates and Patches

Patch files contain the difference between the original source code files and the new source code. These are files which have an extension of .diff. You may apply a patch to the source file by using the patch command. This can be done simply by copying the patch file (.diff file) to the directory containing the source code and typing

patch sourcefile patchfile


After the source has been patched, a clean rebuild of the kForth executables, kforth and kforth-fast, is recommended,

make clean
make


The executables may then be copied to the desired path, typically to /usr/local/bin under Linux.

Updates which are Forth source code files (.4th files) may simply be copied over the existing versions of these files. The update files given here are critical files, i.e. they are files containing ANS Forth definitions or frequently used libraries of words. Other kForth example programs are also updated from time to time, but will not be listed here. Please refer to the kForth Programming Examples Page to check for updates of other kForth programs.

1.5.3

System Update/Patch FileDate Description
Linux ForthVM.diff2017-06-01 patch to ForthVM.cpp to fix bugs with S" [DEFINED] and [UNDEFINED].




1.5.2

System Update/Patch FileDate Description
Linux Makefile2015-04-17 updated Makefile to change version label to 1.5.2p2. Use after applying all previous patches.
Linux vmc.diff2015-04-17 patch to vmc.c for proper compilation under gcc version > =4.8
Linux simple-graphics-x11.4th2012-06-02 new simplified interface for single-window X11 programming
Linux Xutil.4th2012-06-02 new Xlib interface file examples/libs/x11/Xutil.4th
Linux libX11.4th2012-06-02 updated examples/libs/x11/libX11.4th
Linux Xlib.4th2012-06-02 updated examples/libs/x11/Xlib.4th
Linux modules.fs2012-04-07 new modular programming framework
Linux syscalls.4th2011-11-02 Fix for incorrectly implemented MMAP syscall.
Linux ForthVM.diff2011-11-02 patch to 1.5.2 release ForthVM.cpp file to fix bug with no default execution code for created words which are subsequently ALLOTed.
Linux Makefile.diff2011-11-02 patch to 1.5.2 release Makefile to allow external specification of the default kForth directory.
Linux Xlib.4th2011-08-25 updated examples/libs/x11/Xlib.4th




1.5.0 (Development Version)

System Update/Patch FileDate Description
Linux vmc.c-2009-11-30.diff2010-04-17 patch to 2009-11-30 snapshot vmc.c file to fix order of args for SYSCALL
Linux syscalls.4th2010-04-17 Renamed from syscalls386.4th and updated




1.4.1

System Update/Patch FileDate Description
Linux and OS X/PPC ForthVM.diff2007-11-23 Patch to ForthVM.cpp to allow relative paths in default directory for INCLUDE
Linux and OS X/PPC ForthVM-fast.diff2007-11-23 Patch to ForthVM-fast.cpp to allow relative paths in default directory for INCLUDE
Windows/Cygwin ForthVM.diff2007-11-23 Patch to ForthVM.cpp to allow relative paths in default directory for INCLUDE
Windows/Cygwin ForthVM-fast.diff2007-11-23 Patch to ForthVM-fast.cpp to allow relative paths in default directory for INCLUDE
Linux vm.diff2007-10-09 Patch to vm.s to fix potential problem with MOVE
Linux vm-fast.diff2007-10-09 Patch to vm-fast.s to fix potential problem with MOVE
All utils.4th2007-10-09 Revised $CONSTANT and added CTABLE and ENUM




1.4.0

System Update/Patch FileDate Description
OS X/PPC utils.4th2007-07-31 Revised $CONSTANT and added CTABLE and ENUM
OS X/PPC matrix-mult.4th2007-01-29 Fixed long-standing bug with standard benchmark program
OS X/PPC asm-x86.4th2007-01-07 Fixes problems with assembly of byte and word register operands
OS X/PPC fsl-util.4th2006-10-31 Non-critical update of fsl-util.4th




1.3.2

System Update/Patch FileDate Description
Linux and Windows utils.4th2007-07-31 Revised $CONSTANT and added CTABLE and ENUM
Linux and Windows matrix-mult.4th2007-01-29 Fixed long-standing bug with standard benchmark program
Linux and Windows asm-x86.4th2007-01-07 Fixes problems with assembly of byte and word register operands
Linux and Windows fsl-util.4th2006-10-31 Non-critical update of fsl-util.4th
Linux vm.diff2006-10-21 Patch to vm.s adds DIVIDE BY ZERO error check for MOD and /MOD
Linux vm-fast.diff2006-10-21 Patch to vm-fast.s adds DIVIDE BY ZERO error check for MOD and /MOD
Windows vm.diff2006-10-21 Patch to vm.s adds DIVIDE BY ZERO error check for MOD and /MOD
Windows vm-fast.diff2006-10-21 Patch to vm-fast.s adds DIVIDE BY ZERO error check for MOD and /MOD




1.3.1

System Update/Patch FileDate Description
Windows vmc-fast.diff2006-04-14 Patch to vmc-fast.c fixes a stack overwrite problem in the signals interface
Windows vmc.diff2006-04-14 Patch to vmc.c fixes a stack overwrite problem in the signals interface
Linux vmc-fast.diff2006-04-14 Patch to vmc-fast.c fixes a stack overwrite problem in the signals interface
Linux vmc.diff2006-04-14 Patch to vmc.c fixes a stack overwrite problem in the signals interface
Linux and Windows asm-x86.4th2006-03-14 Update of asm-x86.4th fixes several more bugs and provides additional floating point instructions
Linux and Windows asm-x86.4th2006-03-13 Update of asm-x86.4th fixes several bugs and reduces overhead
Linux and Windows asm-x86.4th2006-02-11 Update of asm-x86.4th removes unnecessary overhead in CODE words




1.2.6

System Update/Patch FileDate Description
Windows filesw.4th2005-09-28 Update of filesw.4th fixes non-standard behavior of READ-LINE
Linux files.4th2005-09-28 Update of files.4th fixes non-standard behavior of READ-LINE
Linux Makefile2005-02-19 Update of Makefile for gcc 3.x permits build on 64-bit systems
Linux Makefile-fast2005-02-19 see above; Makefile for the fast/ subdirectory
Linux and Windows ansi.4th2004-09-08 Update of ansi.4th includes new console query words
Linux and Windows ForthVM.diff2004-08-20 Patch for ForthVM.cpp to fix error handling in INCLUDE
Linux and Windows ForthVM-fast.diff2004-08-20 Patch for ForthVM-fast.cpp
Linux and Windows dynmem.4th2004-07-16 Fixed problem with 2D array memory word }}free




1.0.14-2

System Update/Patch FileDate Description
Linux and Windows ans-words.4th2003-09-28 Added [IF] ... [ELSE] ... [THEN] conditional compilation words
Windows filesw.4th2003-05-16 Added constants O_EXCL and O_TRUNC




1.0.14

Do NOT apply the following patch(es) to 1.0.14-2 source file(s).

.
SystemUpdate/Patch FileDateDescription
Linux vm.diff2003-04-19Patch file for source file vm.s to fix problem with FTRUNC>S




1.0.13

SystemUpdate/Patch File DateDescription
Linux/Windows ans-words.4th2003-03-09 Update of ans-words.4th. Fixed F~ and added >NUMBER, DEFER, and IS.
Windows filesw.4th2002-09-20 Update of ANS file interface words for Windows




©2003--2007 Creative Consulting for Research and Education