What is ARM architecture and how do Cortex-A, R and M differ?
Short answer: Arm is a family of instruction set architectures. Cortex-A targets application processors with an MMU, Cortex-R targets real-time systems, and Cortex-M targets microcontrollers.
ADD X0, X1, X2 // AArch64 example
1. Architecture vs processor
The ISA defines instructions, registers and the programmer-visible behavior. A processor implementation defines its pipeline, cache sizes and performance. Two cores implementing the same ISA may have very different hardware.
| Profile | Typical use | Example |
|---|---|---|
| Cortex-A | Linux, Android, applications | Cortex-A55 |
| Cortex-R | Predictable real-time control | Cortex-R52 |
| Cortex-M | Low-power firmware and RTOS | Cortex-M4 |
2. Practical example: An Android display driver typically runs on Cortex-A; a motor controller might use Cortex-M. Cortex-R often appears in safety-critical controllers. The profiles are alternatives, not sequential stages.
Interview takeaway: Arm architecture is the software-visible contract; Cortex is a family of processor designs.
How to select an ARM profile for a real product
| Example workload | Suitable profile | Reason |
|---|---|---|
| Linux graphics and networking | Cortex-A | Virtual memory, rich operating systems, application performance |
| Deadline-sensitive storage or control | Cortex-R | Real-time-oriented implementation and memory architecture |
| Small sensor and motor-control firmware | Cortex-M | Low-overhead exception model, MCU integration |
The profile describes an architectural family, not a fixed feature list. For example, Cortex-R implementations differ in MMU/MPU support, and Cortex-M implementations differ in FPU, MPU, TrustZone and cache support. Cortex-A can also run bare-metal software. The actual SoC adds interconnect, memory controllers, peripherals, power domains and interrupt hardware. Choose the processor using measured performance, worst-case latency, memory, isolation and power requirements.