An indirect threaded Forth header contains the following elements:[..]
SFA : Optional:identifies the source[..]
Implementors may choose this system to separate the immutable and the
mutable fields over baroque ad hoc headers where special cases
abound. Demanding that a CONSTANT is a CREATEd items,
is reminiscent of Java where even a simple integer is an object,
imposing overhead where it is no necessary.
An indirect threaded Forth header contains the following elements:
CFA : contains the address to jump to during EXECUTE
DFA : is a pointer to mutable data, in rare cases a constant
FFA : contains flags, properties of the word
LFA : identifies the wordlist, probably linking
NFA : Address of where the name of the word resides
SFA : Optional:identifies the source
These fields are constant. They need never be changed
once the word is created.
Comes CREATE. The standard requires that there are two
mutable areas involved CREATE.
- DOES> identifies the action to be done by the CREATEd words
ISO require that it is possible to redefine indefinitely.
- The data field in the ISO sense. This is the run of the
mill data and is by nature mutable.
This is easily accommodated with a pointer to RAM that
contains two fields.
Demanding that a CONSTANT is a CREATEd items,
is reminiscent of Java where even a simple integer is an object,
imposing overhead where it is no necessary.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 56:19:41 |
Calls: | 6,712 |
Files: | 12,243 |
Messages: | 5,355,475 |