Copyright © Philip M. Parker, INSEAD. Terms of Use.

SPECULATIVE EXECUTION

Specialty Definition: SPECULATIVE EXECUTION

DomainDefinition

Computing

Speculative execution A technique allows a superscalar processor to keep its functional units as busy as possible by executing instructions before it is known that they will be needed. The Intel P6 uses speculative execution. Compare branch prediction, speculative evaluation. (1995-05-05). Source: The Free On-line Dictionary of Computing.

Source: compiled by the editor from various references; see credits.

Top     

Specialty Definition: Speculative execution

(From Wikipedia, the free Encyclopedia)

In computer science, speculative execution is the execution of code whose result may not actually be needed. In the context of functional programming the term "speculative evaluation" is used instead.

Speculative execution is an optimization. It is useful only when early execution consumes less time and space than later execution would, and the savings are enough to compensate, in the long run, for the possible wasted effort of computing a value which may never be used.

Modern pipelinedd microprocessors use speculative execution to reduce the cost of conditional branch instructions. When a conditional branch instruction is encountered, the processor guesses which way the branch is most likely to go (this is called branch prediction), and immediately starts executing instructions from that point. If the guess later proves to be incorrect, all computation past the branch point is discarded. The early execution is cheap because the pipeline stages involved would otherwise lie dormant until the next instruction was known.

Though it's seldom referred to as such, eager evaluation is also a form of speculative execution (although the situation is complicated by the presence of side effects). The early evaluation is often cheaper because values needed for the computation are likely to be available on the stack and need not be stored and later retrieved from the heap. It can also be substantially more expensive, as in the case of generating the list of integers from 1 to 1,000,000. Programmers writing code in a strict programming language avoid these cases by using explicit laziness or by circumlocution (which can become very elaborate).

Lazy evaluation does not speculate. The incorporation of speculative evaluation into implementations of the Haskell programming language is a current research topic. Eager Haskell is designed around the idea of speculative evaluation. Recent versions of GHC support a kind of speculative evaluation called optimistic evaluation.

Source: adapted by the editor from Wikipedia, the free encyclopedia under a copyleft GNU Free Documentation License (GFDL) from the article "Speculative execution."

Top     

Crosswords: SPECULATIVE EXECUTION

Specialty definitions using "SPECULATIVE EXECUTION": Cyrix 6x86Dynamic Execution. (references)

Top     

Modern Translation: SPECULATIVE EXECUTION

Language Translations for "SPECULATIVE EXECUTION"; alternative meanings/domain in parentheses.

Dutch

  

speculative execution. (various references)

   

Pig Latin

  

eculativespay executionay

Source: compiled by the editor from various translation references.

Top     

Anagrams: SPECULATIVE EXECUTION

Scrabble® Enable2K-Verified Anagrams

Words within the letters "a-c-c-e-e-e-e-i-i-l-n-o-p-s-t-t-u-u-v-x"

-5 letters: conceptualities.

Source: compiled by the editor from various references; see credits.

SCRABBLE® is a registered trademark. All intellectual property rights in and to the game are owned in the U.S.A and Canada by Hasbro Inc., and throughout the rest of the world by J.W. Spear & Sons Limited of Maidenhead, Berkshire, England, a subsidiary of Mattel Inc. Mattel and Spear are not affiliated with Hasbro.

Top     



INDEX

1. Crosswords
2. Translations: Modern
3. Anagrams
4. Bibliography


  

Copyright © Philip M. Parker, INSEAD. Terms of Use.