Sujet : Re: recursion
De : stephen (at) *nospam* vfxforth.com (Stephen Pelc)
Groupes : comp.lang.forthDate : 22. Jul 2024, 14:00:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v7ll56$lg5d$1@dont-email.me>
References : 1 2 3 4
User-Agent : Usenapp for MacOS
On 17 Jul 2024 at 08:47:45 BST, "dxf" <
dxforth@gmail.com> wrote:
DEFER may not be as fast as a directly patched definition but neither
has that prevented a generation from using it.
At least on x64 and CISC CPUs, calling a deferred word is just
CALL [] foo
rather than
CALL foo
The difference on x64 is one byte and a a few (hardware and cache
dependent) cycles.
IMHO Forward referencing and resolving words are likely just to be
wrappers for syntactic sugar around DEFER and IS.
Stephen
-- Stephen Pelc, stephen@vfxforth.comMicroProcessor Engineering, Ltd. - More Real, Less Time133 Hill Lane, Southampton SO15 5AF, Englandtel: +44 (0)78 0390 3612, +34 649 662 974http://www.mpeforth.com MPE website
http://www.vfxforth.com/downloads/VfxCommunity/ downloads