patternMinor
What's an Instruction Set Architecture
Viewed 0 times
architectureinstructionsetwhat
Problem
I'm a beginner and I don't understand what an Instruction Set Architecture is (I read the wikipedia page related to it).
Can anyone explain it to me in a simple manner please?
Can anyone explain it to me in a simple manner please?
Solution
It's a description of how a certain processor is designed, e.g. which commands it understands, how many registers it has, how it handles interrupts, etc. Any program you write (in assembly) or compile (e.g. from C) for a specific ISA can run on any processor that uses that ISA.
To run a program compiled for one ISA on a different ISA, you need an emulator that translates commands and potentially simulates registers, etc.
For example, desktop PCs use the x86 ISA family, which is why you can run Windows, Ubuntu, etc on any x86 processor.
Smartphones and Raspberry Pis have processors with the ARM ISA, which is why you can't run regular x86 Windows on a RaspPi, instead requiring one specially built for ARM.
To run a program compiled for one ISA on a different ISA, you need an emulator that translates commands and potentially simulates registers, etc.
For example, desktop PCs use the x86 ISA family, which is why you can run Windows, Ubuntu, etc on any x86 processor.
Smartphones and Raspberry Pis have processors with the ARM ISA, which is why you can't run regular x86 Windows on a RaspPi, instead requiring one specially built for ARM.
Context
StackExchange Computer Science Q#75348, answer score: 7
Revisions (0)
No revisions yet.