Re: Visibility inside a colon definition
- From: Bruce McFarling <agila61@xxxxxxxxxxxx>
- Date: Mon, 3 Mar 2008 15:26:17 -0800 (PST)
On Mar 3, 5:53 am, Jonah Thomas <jethom...@xxxxxxxxx> wrote:
I took your proposal to mean
that a colon definition would have the header last, but that create,
constant etc wouldn't. That would create issues for tick.
I see! I didn't think of that.
So putting a header immediately after CREATE would be a big problem.
Yes, for it to be integrated, the only simply solutions involve a
separate namespace. That namespace can be in the same memory allocated
to the codespace, of course, but the headers would be built down from
the top end of the memory zone while code was building up from the
bottom.
Of course, if memory is tight, headers in a separate namespace do not
need to be linked together in a list, but can just be a sequence of
counted strings each followed by a value. If the tokens are limited to
a maximum of 31 characters, then even with 8-bit chars that allows
three bits for a mode-parameter to allow for eight different types of
entries into the namespace. Not throwing away four of those modes on a
SMUDGE bit means that the traditional four types of header ... normal
word, immediate word, and compile-only of both ... can be catered to
and four more remain available ... eg, for a namespace-only literal,
and for an anonymous namespace entries, where the mode and a count of
zero implies that the parameter cell follows immediately.
And, of course, if the mode is implemented by a vector of eight xt's,
that lends itself to a simple but context-sensitive compiler, where
one or two modes can be reserved for actions associated with the
wordlist that contains the word.
.
- References:
- Re: Visibility inside a colon definition
- From: Ed
- Re: Visibility inside a colon definition
- From: Jonah Thomas
- Re: Visibility inside a colon definition
- From: Ed
- Re: Visibility inside a colon definition
- From: Jonah Thomas
- Re: Visibility inside a colon definition
- Prev by Date: Re: MIDForth
- Next by Date: Re: Maybe a newbie question..
- Previous by thread: Re: Visibility inside a colon definition
- Next by thread: Re: MIDForth
- Index(es):
Relevant Pages
|
Loading