how better implement BRANCH, by offset or by absolute,
or just use best of ISA ?
What is ISA ?
how better implement BRANCH, by offset or by absolute,
or just use best of ISA ?
If you mean threaded-code, there's probably little reason to use relative. >There was an article in Forth Dimensions V5N2 on absolute branches. It >included the following editorial footnote:
"There is a trade-off between absolute and relative branches. As the author
points out, absolute branches are faster. Relative branches are used in the
FIG model in order to make the LATEST definition relocatable. In practice,
this feature is almost never used (see Schleisiek, FORML-1980. on separated
heads). For most users, speed is probably more valuable. As for BACK, it
is probably good to retain it for uniformity with other systems, even if it
is only a synonym for COMMA." - Michael Perry
IIRC polyFORTH used 8-bit relative branches - presumably to save space.
What is ISA ?
On Tuesday, November 1, 2022 at 4:02:17 PM UTC, dxforth wrote:
What is ISA ?
Instruction Set Architecture
how better implement BRANCH, by offset or by absolute,=20
In Gforth we started with relative BRANCH (because fig-Forth has it),
and between Gforth-0.5 (2000) and Gforth-0.6 (2003) switched to
absolute BRANCH (because of performance). We have not seen a single disadvantage from this change.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 475 |
Nodes: | 16 (2 / 14) |
Uptime: | 22:51:46 |
Calls: | 9,488 |
Calls today: | 7 |
Files: | 13,617 |
Messages: | 6,121,103 |