GForth ported to nanonote

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


Hi,

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:

  http://mosquito.dyndns.tv/~spock/openwrt/

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

  http://mosquito.dyndns.tv/freesvn/trunk/openwrt/gforth/

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

  http://mosquito.dyndns.tv/freesvn/trunk/brainless/

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

  http://mosquito.dyndns.tv/~spock/gforth.pdf

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.

cheers,

David
-- 
GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg
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: <http://lists.en.qi-hardware.com/pipermail/discussion/attachments/20100727/e46b731c/attachment.pgp>


More information about the discussion mailing list


interactive