Computer Organisation and Architecture · Instruction Formats
Computer Architects vs Programmers and General Purpose vs Embedded Systems
Overview
Computer design and use involve two distinct groups of people: the architects who design the computer and the programmers who use it.
Computers themselves fall into two broad categories — general purpose (generic) machines meant to do anything, and embedded systems built for a narrow, fixed set of tasks.
Key concepts
- Computer architects (designers): the set of people who design the computer.
- Programmers: the set of people who use the computer to perform tasks such as programming.
- General purpose computers (generic computers): desktops, laptops, and similar machines; they are meant to do anything and are not restricted to a particular task.
- Embedded systems: computers that are specific to certain tasks, dedicated to a narrow, fixed set of functions.
Example: the computer inside a washing machine, which only does certain things — you can set the timer, or it automatically turns on and turns off. - The core of an embedded system is also a computer; the difference lies in what the computer is designed to do.
How it works
- Identify the two roles: the designer/architect builds the computer; the programmer uses the computer to do tasks.
- Classify the computer by its intended use:
- If it must be able to perform any task, it is a general purpose (generic) computer — e.g., desktop, laptop.
- If it is built to perform only specific tasks, it is an embedded system — e.g., the controller in a washing machine (set timer, automatic turn on / turn off).
- Recognize that an embedded system still contains a computer at its core; the distinguishing feature is that its function is fixed and task-specific, unlike a generic computer, which is supposed to do anything.
Comparison
| Feature | General Purpose Computer | Embedded System |
|---|---|---|
| Also called | Generic computer | Task-specific computer |
| Examples | Desktop, laptop | Computer inside a washing machine |
| Range of tasks | Supposed to do anything | Only certain fixed things (set timer, automatic turn on/off) |
| Users | Programmers writing arbitrary programs | Typically dedicated control functions |
Revision summary
- Computer architects / designers design the computer; programmers use the computer to do tasks.
- General purpose (generic) computers — desktops, laptops — are meant to do anything.
- Embedded systems are computers specific to certain tasks, e.g., the computer in a washing machine (timer setting, automatic on/off).
- The core of an embedded system is still a computer; the difference lies in what the computer is designed to do.
Previous-year exam insights
- An instruction format is the layout of the bit fields of an instruction (opcode, addressing-mode, register, and address/immediate fields); the number of bits in the opcode fixes the maximum number of distinct instructions ( bits), and the number of bits in the address field fixes the directly addressable memory size ( bits words).
- In a fixed-length (fixed-width) instruction format every instruction occupies the same number of bits, which simplifies fetch/decode; in a variable-length format instructions occupy different numbers of bits, which saves memory but complicates decoding.
- Expanding opcode (extended opcode) design: shorter opcodes are reserved for instructions with more address fields and longer opcodes for instructions with fewer address fields, so the total instruction length stays constant; the number of encodings left for longer opcodes equals the unused encodings of the shorter opcode prefix.
- Instruction set architectures are classified by the number of operand addresses per instruction (3-address, 2-address, 1-address/accumulator, 0-address/stack); fewer addresses mean shorter instructions but more instructions per program, and the 0-address form uses a stack with push/pop.
- RISC uses fixed-length, simple, load/store instruction formats with many registers and few addressing modes; CISC uses variable-length, complex instructions with many addressing modes and memory operands.
- Embedded systems typically use microcontrollers with RISC-style or specialised ISAs, limited memory, and real-time constraints, whereas general-purpose computers emphasise performance and programmability; both still execute stored programs fetched from memory.