Labels as values and threaded-code interpretation

Walter Bright newshound2 at digitalmars.com
Sun Jun 2 15:18:01 PDT 2013


On 6/2/2013 1:10 PM, Dmitry Olshansky wrote:
> The problem is that if every goto *get_me_new_opcode compile may have no idea of
> where it will through it with computed labels. Hence some conservativeness of
> what registers contain and reloads and in effect all labels end up as isolated
> "functions". Plus a big stack frame is liability.
>
> And then there is a fair share of obstacles in making the kind of threaded
> interpreter code optimized properly, this post I find interesting:
> http://article.gmane.org/gmane.comp.lang.lua.general/75426

Thanks for the interesting article.



More information about the Digitalmars-d mailing list