?

Log in

No account? Create an account
A 3-Instruction Forth for Embedded Systems work - Adventures in Engineering — LiveJournal
The wanderings of a modern ronin.

Ben Cantrick
  Date: 2007-02-05 18:00
  Subject:   A 3-Instruction Forth for Embedded Systems work
Public
  Mood:der ubernerd
  Music:Front Line Assembly - Digital Tension Dementia

How many instructions does it take to make a Forth for target development work? Does memory grow on trees? Does the cost of the development system come out of your own pocket? A 3- instruction Forth makes Forth affordable for target systems with very limited memory. It can be brought up quickly on strange new hardware. You don't have to do without Forth because of memory or time limitations. It only takes 66 bytes for the Motorola MC68HC11. Full source is provided.

http://pygmy.utoh.org/3ins4th.html

I remain skeptical of the practicality of Forth in a large-project, multiple-programmer setting. But as an embedded ROM monitor, Forth is fantastic. This idea is pretty cool, and I may have to bust out my AVR programmer and try it.
Post A Comment | 2 Comments | | Link






Triggur
  User: triggur
  Date: 2007-02-06 02:52 (UTC)
  Subject:   (no subject)
Almost without exception, all of large commercial embedded projects I've seen that used cryptic stuff like forth or assembly wound up horribly buggy/under scope/over budget/unmaintainable.

And having written many many thousands of lines of both forth and assembly, I have to cast a wary eye on this. :)

I mean, when you have a reaaaaally tiny uC and you're pushing it to its limits, it might pay to drop down low and bitbang. But man, the brain damage. :-P
Reply | Thread | Link



Trevor Stone: escher drawing hands
  User: flwyd
  Date: 2007-02-06 07:35 (UTC)
  Subject:   (no subject)
Keyword:escher drawing hands
I thought this was going to explain how to implement a programming language in three machine instructions. When I realized it was a language which supports three instructions I was less impressed, but mostly because assembly instructions don't turn me on as much as lambda functions.
Reply | Thread | Link



browse
May 2015