[chbot] Forth for embedded programming.

Robin Gilks robin at gilks.org
Thu Nov 3 06:46:40 GMT 2011


>
> Has anyone had any real world experience with forth?
> Its one of those ones that always seemed like it might be worth playing
> with but I never got around to it.
>
> Is it still a practical language? Worth the effort?
> C

I wrote a Forth interpreter many years ago for a Z80 CPU - hmmm must have
been about 25 years ago.

Was a fun job as once you have the primitives you can build your own
language elements (I recall being well pleased with a switch statement
referencing items off the stack.

I have a very good book available for loan (i.e. it *MUST* be returned in
good condition) called "Threaded Interpreive Languages" by R G Loeliger
which funnily enough has an implementation in Z80 assembler :)

I can't remember much about the implementation apart from the speed and
small code size which were quite amazing.

-- 
Robin Gilks





More information about the Chchrobotics mailing list