ArticleslgStudy

computer science

Tagged architecture

Tagged architecture 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 Tagged architecture rather than just read about it. In short: In computer science, a tagged architecture is a type of computer architecture where every word of memory constitutes a tagged union, being divided into a number of bits of data, and a tag section that describes the type of the data: how it is to be interpreted, and, if it is a reference, the type of the object that it points to. Precursors Some early systems use tagging of data in memory but do not have all of the c…

Key takeaways

  • Tagged architecture 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 Tagged architecture to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Tagged architecture from memory before moving on to harder problems.

Reference excerpt

In computer science, a tagged architecture is a type of computer architecture where every word of memory constitutes a tagged union, being divided into a number of bits of data, and a tag section that describes the type of the data: how it is to be interpreted, and, if it is a reference, the type of the object that it points to.

Precursors Some early systems use tagging of data in memory but do not have all of the characteristics now considered to be part of tagged architectures.

RCA 601 The RCA 601 has a 3-bit tag register and a 3-bit tag for every 24-bit half-word. Every instruction can request a test for equal or unequal tag, and cause a maskable interrupt if the specified match fails. There is no architectural connection between the tag and the contents of the half-word; it is strictly determined by the software.

Burroughs B5000, B5500, and B5700 The Burroughs B5000, B5500, and B5700 have 48-bit words with no appended tag field. However, while there are no tag fields for character, instruction, or numeric (floating point) words, every control word formats includes a 3-bit tag.

Burroughs B6500 and successors The Burroughs B6500 and its successors have a 3-bit tag for every word.

Architecture In the von Neumann architecture, program memory and data memory are indistinguishable (as opposed to Harvard architecture, in which they are separate), which makes it critical for programs not to use memory contents for the wrong intent. Adding tags to the von Neumann architecture can prevent overwriting the program and prevent many more undesirable operations. Notable examples of American tagged architectures were the Lisp machines, which had tagged pointer support at the hardware and opcode level, the Burroughs B6500 and successors, which have a data-driven tagged and descriptor-based architecture, and the non-commercial Rice Computer. Both the Burroughs and Lisp machine are examples of high-level language computer architectures, where the tagging is used to support types from a high-level language at the hardware level. In addition to this, the original Xerox Smalltalk implementation used the least-significant bit of each 16-bit word as a tag bit: if it was clear then the hardware would accept it as an aligned memory address while if it was set it was treated as a (shifted) 15-bit integer. Current Intel documentation mentions that the lower bits of a memory address might be similarly used by some interpreter-based systems. In the Soviet Union, the Elbrus series of supercomputers pioneered the use of tagged architectures in 1973. The RISC-V J extension and memory-tagging extension (Zimt) both propose adding some support for tagged architecture at the instruction level. CHERI (Capability Hardware Enhanced RISC Instructions) uses a tagged architecture to add capability-based addressing to several existing ISAs such as x86, MIPS, and RISC-V.

Intel i960 family The Intel i960 family, including 80960MX had 33-bit memory. The 33rd bit was a tag that distinguished between 32-bit data words and 32-bit pointers to memory, and it blocked the use of calculated pointers to possibly access unauthorized memory addresses.

See also Executable-space protection Harvard architecture

References

Worked examples

Example 1 — a first encounter with Tagged architecture

Start with the simplest possible case. Write down what Tagged architecture 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 Tagged architecture 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 Tagged architecture 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 Tagged architecture

In research
Tagged architecture 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 Tagged architecture 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
Tagged architecture is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer architecture, so understanding it makes those chapters shorter.
In everyday life
Look for Tagged architecture 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 “Tagged architecture” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Tagged architecture in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Tagged architecture 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 Tagged architecture out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Tagged architecture in simple terms?

In computer science, a tagged architecture is a type of computer architecture where every word of memory constitutes a tagged union, being divided into a number of bits of data, and a tag section that describes the type of the data: how it is to be interpreted, and, if it is a reference, the type o…

Why does Tagged architecture 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 Tagged architecture?

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 Tagged architecture.

Tags

  • Computer architecture

Keep exploring