Content deleted Content added
→See also: Merge material from Scalar (computing) |
destub |
||
(12 intermediate revisions by 9 users not shown) | |||
Line 1:
{{Short description|Class of computer processors}}
{{refimprove|date=August 2012}}
'''Scalar processors'''
== Classification ==
A scalar processor is classified as a single instruction, single data ([[Single instruction, single data|SISD]]) processor in [[Flynn's taxonomy]]. The [[i486|Intel 486]] is an example of a scalar processor. It is to be contrasted with a [[vector processor]] where a single instruction operates simultaneously on multiple data items (and thus is referred to as a single instruction, multiple data ([[Single instruction, multiple data|SIMD]]) processor).<ref name="Patterson 2012 p. 650">{{cite book | last=Patterson | first=David | title=Computer organization and design: the hardware/software interface | publisher=Morgan Kaufmann | publication-place=Waltham, MA | year=2012 | isbn=978-0-12-374750-1 | oclc=746618653 | page=650}}</ref> The difference is analogous to the difference between [[scalar (mathematics)|scalar]] and [[Vector (geometric)|vector]] arithmetic.
The term ''scalar'' in computing dates to the 1970 and 1980s when vector processors were first introduced. It was originally used to distinguish the older designs from the new vector processors.
==
A [[superscalar]] processor (such as the [[P5 (microarchitecture)|Intel P5]])
== Scalar data type ==
Line 14 ⟶ 15:
Generally, all basic [[primitive data type]]s are considered scalar:
* The [[
* Numeric types (<code>[[Integer (computer science)|int]]</code>, the [[floating point]] types <code>float</code> and <code>double</code>)
* Character types (<code>[[Character (computer science)#char|char
Some programming languages also treat [[String (computer science)|strings]] as scalar types, while other languages treat strings as [[Array (data structure)|arrays]] or [[Object (computer science)|objects]].
==See also==
Line 29 ⟶ 31:
{{DEFAULTSORT:Scalar Processor}}
[[Category:Central processing unit]]
|