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)
2. Implementation of word >name is trickier. It appears that >name now
should use FIND to go back to name field.
Are there any other pitfalls that I should pay attention to when doing
this?
Any advices an comments appreciated.
Best regards,
M.
--
M.Veselic
Sigma Lab.