[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: indirect threading for bytecode interpreter

From: Helmut Eller
Subject: Re: indirect threading for bytecode interpreter
Date: Thu, 17 Sep 2009 21:20:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

* Tom Tromey [2009-09-17 18:46+0200] writes:

> This patch implements indirect threading for the Emacs bytecode
> interpreter.  It uses a GNU C extension, and falls back to the current
> switch-based code if Emacs is compiled with some other compiler.

According to the usual Forth terminology
your patch implements token threading not indirect threading.

[Indirect threading uses pointers (to Forth-style "word headers") which
 contain the address of the machine code.  There are no such pointers in
 your patch.  At the machine code level, token threaded code uses a
 "token" as index in a table.  That's what your code is doing.  Unlike
 token threaded code, indirect threaded code is typically not position

Despite that, a few years ago somebody has already proposed that 
and it wasn't deemed worthwhile back then.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]