In article <fuhre1$6c0$1@[EMAIL PROTECTED]
>, Maki <veselic123@[EMAIL PROTECTED]
> wrote:
>I have recently cross-compiled my first forth system (subroutine
threads),
>and now I want to separate headers from code. Current header arrangement
>looks like this:
>[link][flags][count][name] code
>I guess I need one more pointer in the header like this:
>[link][flags][count][name][code_ptr] which will connect header to
>definition.
>
>Questions:
>
>1. What is the best way to handle allocation in name dictionary? My
current
>thought is to revector dp with words like:
>PROGRAM HERE ( returns dp from program code dictionary)
>NAMES HERE ( returns dp from name dictionary)
Just put .text and .bss (or .text and .headers) at the appropriate
place in the macro's you use for the headers.
>
>2. Implementation of word >name is trickier. It appears that >name now
>should use FIND to go back to name field.
If you insist that the execution token points into executable code,
with no back pointer there, it can't be helped.
<SNIP>
>M.Veselic
>Sigma Lab.
Groetjes Albert
--
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- like all pyramid schemes -- ultimately falters.
albert@[EMAIL PROTECTED]
&=n http://home.hccnet.nl/a.w.m.van.der.horst


|