Re: tiny embedded C-based forth
- From: Peter Lawrence <peterl@xxxxxxxxxxxxxx>
- Date: Wed, 11 Jan 2006 23:39:10 -0800
Rod Price wrote:
..
..
..
> What happens when the user types a word like ":" (colon) or ";"
> (semicolon)? Things
> aren't stateless any more. It would seem that both target and host
> would have to
> keep track of a little more state than just the stacks. Call it a
> "mode bit." True?
> Perhaps this could be thought of as two state machines, one on the host
> and one on
> the target, talking to one another.
This is one reason I was working on simpler compilers (not the main one). It
is possible, I have discovered, to have a Forth virtual machine architecture
that gets coded with a simple compile and go compiler, with no states and no
immediate words unless you decide to provide them for syntactic sugar - and
even then, you can put equivalent functionality into a preprocessor which can
be on a host machine.
But I do NOT recommend you to try this for your project unless you are very,
very, short of space on the target machine. The source language isn't Forth
any more, and even though the compiler is simpler the language isn't. I doubt
if you want your students to have to explore lots of new things at once.
But if you are interested, email me and I'll give you some details. PML.
--
GST+NPT=JOBS
I.e., a Goods and Services Tax (or almost any other broad based production
tax), with a Negative Payroll Tax, promotes employment.
See http://member.netlink.com.au/~peterl/publicns.html#AFRLET2 and the other
items on that page for some reasons why.
.
- References:
- tiny embedded C-based forth
- From: Rod Price
- Re: tiny embedded C-based forth
- From: Peter Lawrence
- Re: tiny embedded C-based forth
- From: Anton Ertl
- Re: tiny embedded C-based forth
- From: rodney . delmar . price
- Re: tiny embedded C-based forth
- From: Elizabeth D Rather
- Re: tiny embedded C-based forth
- From: Rod Price
- tiny embedded C-based forth
- Prev by Date: Re: tiny embedded C-based forth
- Next by Date: Re: strongForth is alive!
- Previous by thread: Re: tiny embedded C-based forth
- Next by thread: Re: tiny embedded C-based forth
- Index(es):
Relevant Pages
|