ArticleslgStudy

computer science

Comparison of instruction set architectures

Comparison of instruction set architectures is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Comparison of instruction set architectures rather than just read about it. In short: An instruction set architecture (ISA) is an abstract model of a computer, also referred to as computer architecture. A realization of an ISA is called an implementation.

Key takeaways

  • Comparison of instruction set architectures belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Comparison of instruction set architectures to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Comparison of instruction set architectures from memory before moving on to harder problems.

Reference excerpt

An instruction set architecture (ISA) is an abstract model of a computer, also referred to as computer architecture. A realization of an ISA is called an implementation. An ISA permits multiple implementations that may vary in performance, physical size, and monetary cost (among other things); because the ISA serves as the interface between software and hardware, software that has been written or compiled for an ISA can run on different implementations of the same ISA. This has enabled binary compatibility between different generations of computers to be easily achieved, and the development of computer families. Both of these developments have helped to lower the cost of computers and to increase their applicability. For these reasons, the ISA is one of the most important abstractions in computing today. An ISA defines everything a machine language programmer needs to know in order to program a computer. What an ISA defines differs between ISAs; in general, ISAs define the supported data types, what state there is (such as the main memory and registers) and their semantics (such as the memory consistency and addressing modes), the instruction set (the set of machine instructions that comprises a computer's machine language), and the input/output model.

Data representation In the early decades of computing, there were computers that used binary, decimal and even ternary. 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.

Bits Computer architectures are often described as n-bit architectures. In the first three quarters of the 20th century, n was often 12, 18, 24, 30, 36, 48 or 60. In the last third of the 20th century, n was 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. IBM's PowerPC 604 has a 64-bit bus but only 32-bit registers. The System/360 processors, and some early 32-bit microprocessors such as the Motorola 68000, have 24-bit addresses. The bit width of instructions in an architecture is not necessarily the bit width of the architecture. For example, instructions in System/360, the PDP-11 architecture, the VAX architecture, and the x86 architecture are variable-length. Initial versions of SuperH had fixed-length 16-bit instructions in spite of having a 32-bit architecture, while later versions had both 16-bit and 32-bit instructions.

Digits In the first three quarters of the 20th century, word-oriented decimal computers typically had 10-digit words with a separate sign, using all ten digits in integers and using two digits for exponents in floating point numbers.

Endianness 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.

Instruction formats

Opcodes

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). On some instruction set architectures, one or more opcode prefixes are used to alter the subsequent opcode or expand the number of opcodes.

Operands

Addressing modes

Architectures typically allow instructions to include some combination of operand addressing modes:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Comparison of instruction set architectures

Start with the simplest possible case. Write down what Comparison of instruction set architectures claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Comparison of instruction set architectures before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Comparison of instruction set architectures ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Comparison of instruction set architectures

In research
Comparison of instruction set architectures appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Comparison of instruction set architectures in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Comparison of instruction set architectures is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer architecture, Computing comparisons, Instruction set architectures, so understanding it makes those chapters shorter.
In everyday life
Look for Comparison of instruction set architectures outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Comparison of instruction set architectures” →

How to study Comparison of instruction set architectures in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Comparison of instruction set architectures means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Comparison of instruction set architectures out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Comparison of instruction set architectures in simple terms?

An instruction set architecture (ISA) is an abstract model of a computer, also referred to as computer architecture. A realization of an ISA is called an implementation.

Why does Comparison of instruction set architectures matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Comparison of instruction set architectures?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Comparison of instruction set architectures.

Tags

  • Computer architecture
  • Computing comparisons
  • Instruction set architectures

Keep exploring