Branches
Examples above show no branches. For all interpreters, a branch changes the thread pointer (ip
above). As example, a conditional branch when the top-of-stack value is zero might be encoded as follows. Note that &thread
is the location to jump to, not the address of a handler, and so must be skipped (ip++
) whether or not the branch is taken.
Read more about this topic: Threaded Code
Famous quotes containing the word branches:
“I couldnt afford to learn it, said the Mock Turtle with a sigh. I only took the regular course.
What was that? inquired Alice.
Reeling and Writhing, of course, to begin with, the Mock Turtle replied; and then the different branches of ArithmeticAmbition, Distraction, Uglification, and Derision.
I never heard of Uglification, Alice ventured to say.”
—Lewis Carroll [Charles Lutwidge Dodgson] (18321898)
“...there is hope for a tree, if it is cut down, that it will sprout again, and that its shoots will not cease. Though its root grows old in the earth, and its stump dies in the ground, yet at the scent of water it will bud and put forth branches like a young plant. But mortals die, and are laid low; humans expire, and where are they?”
—Bible: Hebrew, Job 14:7-10.