Attic › Computer science › Abstract machine
An abstract machine is a theoretical model of a computer that ignores physical hardware
In computer science, an abstract machine is a theoretical model of a computer system. It lets researchers study what programs can do and how many steps they take without the limits of physical hardware.
Real computers have physical limits. They run out of memory, use electricity, and have specific processor designs that change every few years. If you measure a program on a real computer, you measure the speed of its physical parts as much as you measure the logic of the program. To study the logic alone, computer scientists use abstraction to remove the physical parts.
An abstract machine defines a model of computation with a set of mathematical rules. It has four basic parts:
1. Inputs: Data that enters the machine before or during the work.
2. States: The internal memory that holds the machine's current condition and data.
3. Operations: Simple instructions, such as "add two numbers" or "move data", that change the state.
4. Outputs: The final result that the machine produces.
A program on an abstract machine runs in discrete steps. In each step, the machine reads an input, follows an operation to move to a new state, and possibly writes an output.
Because an abstract machine exists only on paper, it does not break down or run out of space unless the designer sets that rule. In the theory of computation, this lets scientists prove whether a mathematical problem can be solved at all, and calculate the exact number of steps a program needs for a given input size. Hardware engineers also use abstract machines as blueprints to test new processor logic before they build physical chips.
Fact-checked against Abstract machine on Wikipedia
Part of the Computer science syllabus: Turing and the Theory of Computation
See it on the timeline of Computer science