GForth ported to nanonote

David Kuehling dvdkhlng at
Mon Jul 26 18:12:40 EDT 2010


just managed to get GForth interpreter compile in the openwrt
environment.  Pretty hacky, as GForth is almost cross-compilation
resistant by design :)

GForth is a very lowlevel language (i.e. statically typed/not
typechecked) which makes it very fast and efficient, and a good match
for embedded devices.  The CVS version of GForth I use even comes with
assembler support, so you can write MIPS assembler inside your scripts
:) It also comes with shared-library access routines, so with some
assembler glue code it should be possible to call any library functions
installed on the nanonote.  (going to post some proof-of-concept later)

Get the compiled .ipk packages from here:

The OpenWrt source package used for compilation is here (work in

For testing, a chess playing program written as Forth script is
available here:

The up-to-date documentation for GForth (including the new assembler
support) can be found here:

Interpreter startup time is currently slow (2.5s), as it isn't booting
From a pre-generated code image, but has to load and compile all its
source code to boot.  Image generation just won't work in a
cross-compile environment.


GnuPG public key:
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the discussion mailing list