question about a command like 'goto ' in Python's bytecode orit's just a compiler optimization?
usenet at janc.invalid
Fri Jun 19 02:11:55 CEST 2009
Hendrik van Rooyen wrote:
> It is my opinion that it is not possible to make a useful machine,
> virtual or real, which executes instructions sequentially, if the
> instruction set does not contain a conditional jump of some sort.
> I have tried doing it using conditional calls, and it fails on
> the equivalent of the first if ..., elif ... you try to write.
I'm 99.99% sure you can implement that by using a decision subroutine that
returns subroutine pointers (and maybe parameter pointers), but it certainly
won't be efficient on current CPU designs...
More information about the Python-list