In the early decades of computing, there were computers that used binary, decimal1 and even ternary.23 Contemporary computers are almost exclusively binary.
Characters are encoded as strings of bits or digits, using a wide variety of character sets; even within a single manufacturer there were character set differences.
Integers are encoded with a variety of representations, including Sign-magnitude, Ones' complement, Two's complement, Offset binary, Nines' complement and Ten's complement.
Similarly, floating point numbers are encoded with a variety of representations for the sign, exponent and mantissa. In contemporary machines IBM hexadecimal floating-point and IEEE 754 floating point have largely supplanted older formats.
Addresses are typically unsigned integers generated from a combination of fields in an instruction, data from registers and data from storage; the details vary depending on the architecture.
Computer architectures are often described as n-bit architectures. In the first 3⁄4 of the 20th century, n is often 12, 18, 24, 30, 36, 48 or 60. In the last 1⁄3 of the 20th century, n is often 8, 16, or 32, and in the 21st century, n is often 16, 32 or 64, but other sizes have been used (including 6, 39, 128). This is actually a simplification as computer architecture often has a few more or less "natural" data sizes in the instruction set, but the hardware implementation of these may be very different. Many instruction set architectures have instructions that, on some implementations of that instruction set architecture, operate on half and/or twice the size of the processor's major internal datapaths. Examples of this are the Z80, MC68000, and the IBM System/360. On these types of implementations, a twice as wide operation typically also takes around twice as many clock cycles (which is not the case on high performance implementations). On the 68000, for instance, this means 8 instead of 4 clock ticks, and this particular chip may be described as a 32-bit architecture with a 16-bit implementation. The IBM System/360 instruction set architecture is 32-bit, but several models of the System/360 series, such as the IBM System/360 Model 30, have smaller internal data paths, while others, such as the 360/195, have larger internal data paths. The external databus width is not used to determine the width of the architecture; the NS32008, NS32016 and NS32032 were basically the same 32-bit chip with different external data buses; the NS32764 had a 64-bit bus, and used 32-bit register. Early 32-bit microprocessors often had a 24-bit address, as did the System/360 processors.
In the first 3⁄4 of the 20th century, word oriented decimal computers typically had 10 digit456 words with a separate sign,7 using all ten digits in integers and using two digits for exponents89 in floating point numbers.
An architecture may use "big" or "little" endianness, or both, or be configurable to use either. Little-endian processors order bytes in memory with the least significant byte of a multi-byte value in the lowest-numbered memory location. Big-endian architectures instead arrange bytes with the most significant byte at the lowest-numbered address. The x86 architecture as well as several 8-bit architectures are little-endian. Most RISC architectures (SPARC, Power, PowerPC, MIPS) were originally big-endian (ARM was little-endian), but many (including ARM) are now configurable as either.
Endianness only applies to processors that allow individual addressing of units of data (such as bytes) that are smaller than some of the data formats.
In some architectures, an instruction has a single opcode. In others, some instructions have an opcode and one or more modifiers. E.g., on the IBM System/370, byte 0 is the opcode but when byte 0 is a B216 then byte 1 selects a specific instruction, e.g., B20516 is store clock (STCK).
Main article: Addressing mode
Architectures typically allow instructions to include some combination of operand addressing modes:
Main article: instruction set § Number of operands
The number of operands is one of the factors that may give an indication about the performance of the instruction set. A three-operand architecture (2-in, 1-out) will allow
to be computed in one instruction
A two-operand architecture (1-in, 1-in-and-out) will allow
but requires that
be done in two instructions
As can be seen in the table below some instructions sets keep to a very simple fixed encoding length, and other have variable-length. Usually it is RISC architectures that have fixed encoding length and CISC architectures that have variable length, but not always.
The table below compares basic information about instruction set architectures.
Notes:
8 data registers
8 pointer registers
4 index registers
4 buffer registers
1 multiplier quotient register
Test and branch
da Cruz, Frank (October 18, 2004). "The IBM Naval Ordnance Research Calculator". Columbia University Computing History. Retrieved May 8, 2024. https://www.columbia.edu/cu/computinghistory/norc.html ↩
"Russian Virtual Computer Museum _ Hall of Fame _ Nikolay Petrovich Brusentsov". http://www.computer-museum.ru/english/galglory_en/Brusentsov.htm ↩
Trogemann, Georg; Nitussov, Alexander Y.; Ernst, Wolfgang (2001). Computing in Russia: the history of computer devices and information technology revealed. Vieweg+Teubner Verlag. pp. 19, 55, 57, 91, 104–107. ISBN 978-3-528-05757-2.. 978-3-528-05757-2 ↩
650 magnetic drum data processing machine (PDF). IBM. June 1955. 22-6060-2. Retrieved May 8, 2024. http://bitsavers.org/pdf/ibm/650/22-6060-2_650_OperMan.pdf ↩
IBM 7070-7074 Principles of Operation (PDF). Systems Reference Library. IBM. 1962. GA22-7003-6. Retrieved May 8, 2024. http://bitsavers.org/pdf/ibm/7070/GA22-7003-6_7070-7074prcOps.pdf ↩
UNIVAC® Solid-state 80 Computer (PDF). Sperry Rand Corporation. 1959. U1742.1r3. Retrieved May 8, 2024. http://bitsavers.org/pdf/univac/uss/U1742.1r3_UNIVAC_Solid-State_80_General_Description_1959.pdf ↩
Normally the sign could only be plus or minus, but on the IBM 7070/72/74[5] there was a 3-state sign. ↩
IBM 650 MDDPM Additional Features - Indexing Accumulators - Floating-Decimal Arithmetic - Advanced Write-Up (PDF). IBM. 1955. 22-6258-0. Retrieved May 8, 2024. http://bitsavers.org/pdf/ibm/650/22-6258-0_FeaturesIdxAccum.pdf ↩
The LEA (all processors) and IMUL-immediate (80186 & later) instructions accept three operands; most other instructions of the base integer ISA accept no more than two operands. ↩
"AMD64 Architecture Programmer's Manual Volume 6: 128-Bit and 256-Bit XOP and FMA4 Instructions" (PDF). AMD. November 2009. https://www.amd.com/system/files/TechDocs/43479.pdf ↩
"Synopsys Introduces New 64-bit ARC Processor IP Delivering up to 3x Performance Increase for High-End Embedded Applications". https://news.synopsys.com/2020-04-07-Synopsys-Introduces-New-64-bit-ARC-Processor-IP-Delivering-Up-to-3x-Performance-Increase-for-High-End-Embedded-Applications ↩
"Arm A-Profile Architecture Developments 2022 - Architectures and Processors blog - Arm Community blogs - Arm Community". community.arm.com. 29 September 2022. Retrieved 2022-12-09. https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/arm-a-profile-architecture-2022 ↩
Frumusanu, Andrei (September 3, 2020). "ARM Announced Cortex-R82: First 64-bit Real Time Processor". AnandTech. https://www.anandtech.com/show/16056/arm-announces-cortexr82-first-64bit-real-time-processor ↩
"ARM goes 64-bit with new ARMv8 chip architecture". Computerworld. 27 October 2011. Retrieved 8 May 2024. https://www.computerworld.com/article/1536136/arm-goes-64-bit-with-new-armv8-chip-architecture.html ↩
Toshio Yoshida. "Hot Chips 30 conference; Fujitsu briefing" (PDF). Fujitsu. Archived from the original (PDF) on 2020-12-05. https://web.archive.org/web/20201205202434/https://hotchips.org/hc30/2conf/2.13_Fujitsu_HC30.Fujitsu.Yoshida.rev1.2.pdf ↩
"AVR32 Architecture Document" (PDF). Atmel. Retrieved 2024-05-08. https://ww1.microchip.com/downloads/en/devicedoc/doc32000.pdf ↩
"Blackfin manual" (PDF). analog.com. https://www.analog.com/media/en/dsp-documentation/processor-manuals/blackfin_pgr_rev2.2.pdf ↩
"Blackfin Processor Architecture Overview". Analog Devices. Retrieved 2024-05-08. https://www.analog.com/en/lp/001/blackfin-architecture.html ↩
"Blackfin memory architecture". Analog Devices. Archived from the original on 2011-06-16. Retrieved 2009-12-18. https://web.archive.org/web/20110616182409/http://www.analog.com/FAQs/FAQDisplay.html?DSPKBContentID=752A11D1-9E11-4A7F-91AC-CA3C264C5667 ↩
partly RISC: load/store architecture and simple addressing modes, partly CISC: three instruction lengths and no single instruction timing ↩
Since memory is an array of 60-bit words with no means to access sub-units, big endian vs. little endian makes no sense. The optional CMU unit uses big-endian semantics. ↩
Since memory is an array of 12-bit words with no means to access sub-units, big endian vs. little endian makes no sense. ↩
"Crusoe Exposed: Transmeta TM5xxx Architecture 2". Real World Technologies. http://www.realworldtech.com/crusoe-exposed/ ↩
Alexander Klaiber (January 2000). "The Technology Behind Crusoe Processors" (PDF). Transmeta Corporation. Retrieved December 6, 2013. http://www.cs.ucf.edu/~lboloni/Teaching/EEL5708_2004/slides/paper_aklaiber_19jan00.pdf ↩
Intel Corporation (1981). Introduction to the iAPX 432 Architecture (PDF). pp. iii. http://bitsavers.org/components/intel/iAPX_432/171821-001_Introduction_to_the_iAPX_432_Architecture_Aug81.pdf ↩
"LatticeMico32 Architecture". Lattice Semiconductor. Archived from the original on 23 June 2010. https://web.archive.org/web/20100623021729/http://www.latticesemi.com/products/intellectualproperty/ipcores/mico32/mico32architecture.cfm ↩
"LatticeMico32 Open Source Licensing". Lattice Semiconductor. Archived from the original on 20 June 2010. https://web.archive.org/web/20100620185845/http://www.latticesemi.com/products/intellectualproperty/ipcores/mico32/mico32opensourcelicensing.cfm ↩
MIPS64 Architecture for Programmers: Release 6 https://www.mips.com/products/architectures/mips64/ ↩
MIPS32 Architecture for Programmers: Release 6 https://www.mips.com/products/architectures/mips32-2/ ↩
MIPS Open https://www.mipsopen.com/ ↩
"Wave Computing Closes Its MIPS Open Initiative with Immediate Effect, Zero Warning". https://www.hackster.io/news/wave-computing-closes-its-mips-open-initiative-with-immediate-effect-zero-warning-e88b0df9acd0 ↩
OpenRISC Architecture Revisions https://openrisc.io/architecture ↩
PDP-5 Handbook (PDF). Digital Equipment Corporation. February 1964. http://www.bitsavers.org/pdf/dec/pdp5/F-55_PDP5Handbook_Feb64.pdf ↩
PDP-8 Users Handbook (PDF). Digital Equipment Corporation. May 1966. http://www.bitsavers.org/pdf/dec/pdp8/pdp8/F-85_PDP-8_Users_Handbook_May66.pdf ↩
"Power ISA Version 3.1". openpowerfoundation.org. 2020-05-01. Retrieved 2021-10-20. https://ibm.ent.box.com/s/hhjfw0x0lrbtyzmiaffnbxh2fuo0fog0 ↩
"RISC-V ISA Specifications". Retrieved 17 June 2019. https://riscv.org/specifications/ ↩
Oracle SPARC Processor Documentation http://www.oracle.com/technetwork/server-storage/sun-sparc-enterprise/documentation/sparc-processor-2516655.html ↩
SPARC Architecture License http://sparc.org/technical-documents/#ArchLic ↩