Hot spot (computer programming): Difference between revisions

Content deleted Content added
Addbot (talk | contribs)
m Bot: Migrating 2 interwiki links, now provided by Wikidata on d:q4241353
No edit summary
Line 1:
{{refimprove|date=May 2009}}
A term '''hot spot''' in [[computer science]] is most usually defined as a region of a [[computer program]] where a high proportion of executed instructions occur or where most time is spent during the program's execution (not necessarily the same thing since some instructions are faster than others).
 
If a program is stopped randomly, the [[program counter]] (the [[pointer (computer programming)|pointer]] to the next instruction to be executed) is frequently found to contain the address of an instruction within a certain range, possibly indicating code that is in need of optimization or even indicating the existence of a 'tight' [[CPU]] [[Program loop|loop]]. This simple technique can actually be used as a method of detecting highly used instructions although somewhat more sophisticated methods, such as [[instruction set simulator]]s or [[Performance analysis|performance analyzer]]s, achieve this more accurately and consistently.