Newsgroups: comp.lang.forth
From: byron@upstairs.(none) (Byron Jeff)
Date: Sun, 24 Jun 2007 07:40:31 -0500
Local: Sun, Jun 24 2007 8:40 am
Subject: Re: Build your own Forth for Microchip PIC (Episode 838): Threading
In article <1182664370.207959.205...@w5g2000hsg.googlegroups.com>,
Bruce McFarling <agil...@netscape.net> wrote: >On Jun 23, 6:32 pm, byron@upstairs.(none) (Byron Jeff) wrote: Possibly. But you have to analyze the entire core tree to determine if a >> 48 words. Ouch! When bootstrapping the primitives are critical. >They can be reduced. Some by simply omitting them, when they are word is in fact not needed. >Others by synthesizing them from a simpler Forth model. This is what I've been looking for. A factored primitive model that is architecture independent along with a coding of core words from that model. For example: >A ... from data stack to an address pointer A> ... from pointer to data stack. A! ... store cell on stack at address in A A+ ... increment value in A >R ... from data stack to return stack, and R> ... from return stack to data stack ----------- Now that's an easily implementable model. Only one question: 1. From the description above for A! and the descriptions for ! and 2! : DROP ( x -- ) >A ; \ two address units per cell \ one address unit per cell : 1+ ( x -- x+1 ) >A A+ A> ; : R@ ( -- x | R: x -- ) R> >A A> A> R> ; >etc. ... presumably in this context, after getting the boostrap up and Exactly. >running, the more cumbersome definitions may be replaced. Thanks. BAJ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
