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:
“In the woods in a winter afternoon one will see as readily the origin of the stained glass window, with which Gothic cathedrals are adorned, in the colors of the western sky seen through the bare and crossing branches of the forest.”
—Ralph Waldo Emerson (18031882)
“There are a thousand hacking at the branches of evil to one who is striking at the root, and it may be that he who bestows the largest amount of time and money on the needy is doing the most by his mode of life to produce that misery which he strives in vain to relieve.”
—Henry David Thoreau (18171862)
“It is comforting when one has a sorrow to lie in the warmth of ones bed and there, abandoning all effort and all resistance, to bury even ones head under the cover, giving ones self up to it completely, moaning like branches in the autumn wind. But there is still a better bed, full of divine odors. It is our sweet, our profound, our impenetrable friendship.”
—Marcel Proust (18711922)