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:
“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)
“We are nothing but ceremony; ceremony carries us away, and we leave the substance of things; we hang on to the branches and abandon the trunk and body.”
—Michel de Montaigne (15331592)
“Go to the adolescent who are smothered in family
Oh how hideous it is
To see three generations of one house gathered together!
It is like an old tree with shoots,
And with some branches rotted and falling.”
—Ezra Pound (18851972)