2026-01-06
A brief and non-exhaustive compilation of common processors' ISA; most of them are RISC-based except for the older ones which are more CISC-based.
This collection is mostly base on the GNU/Linux architectures' support (see kernel arch), with an additional AVR mention (just not enough juiced for a full OS).
C
detection function exampleInitially Alpha AXP - RISC - 64 bit. Wiki link.
RISC - 32 and 64 bit. Wiki link.
RISC - 32 and 64 bit. Wiki link.
RISC - 8 or 32 bit. Wiki link.
Chinese CPU ISA designed for embedded Linux with a Buildroot support. Github link.
Known as QDSP6 (Qualcomm Digital Signal Processing, 6th gen.) - VLIW - 32 and 64 bit. Wiki link.
RISC - 32 and 64 bit. Doc. link.
Known as the Motorola 68000 series, 680x0, m68000 or 68k - CISC - 32 bit. Wiki link.
Designed for the PS part of FPGA chips (AXI support) - RISC - 32 or 64 bit. Wiki link.
RISC - 32 or 64 bit.
Designed for the PS part of FPGA chips (Avalon support) - RISC - 32 bit.
Currently one version: OR1k - RISC - 32 or 64 bit. Wiki link.
Known as PA-RISC (Precision Architecture RISC), HP/PA or HPPA (Hewlett Packard Precision Architecture) - RISC - 32 or 64 bit.
Derived from Power ISA, known as the IBM RS64 family - RISC - 64 bit.
Not yet implemented in real hardware - RISC - 32, 64 or 128 bit. Wiki link.
Known as the IBM System/390 family, 5th gen. of the System/360 ISA - CISC - 32 bit. Wiki link.
Known as SuperH or SH - RISC - 32 bit. Wiki link.
SPARC (Scalable Processor ARChitecture) - RISC - 64 bit. Wiki link.
Known as 80x86, 8086, IA (Intel Architecture) or x86abi family.
Known for the ESP32 series (XTensa LX6) - post-RISC - 32 bit. Doc. link
C
detection function example/* Get current architecture, detects nearly every architecture. */
const char *getBuild(void)
{
#if defined(__x86_64__) || defined(_M_X64)
return "x86_64";
#elif defined(i386) || defined(__i386__) || defined(__i386) || defined(_M_IX86)
return "x86_32";
#elif defined(__ARM_ARCH_2__)
return "ARMv2";
#elif defined(__ARM_ARCH_3__) || defined(__ARM_ARCH_3M__)
return "ARMv3";
#elif defined(__ARM_ARCH_4T__) || defined(__TARGET_ARM_4T)
return "ARMv4T";
#elif defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5E__)
return "ARMv5"
#elif defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6T2__)
return "ARMv6T2";
#elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__)
return "ARMv6";
#elif defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7S__)
return "ARMv7";
#elif defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7S__)
return "ARMv7A";
#elif defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7S__)
return "ARMv7R";
#elif defined(__ARM_ARCH_7M__)
return "ARMv7M";
#elif defined(__ARM_ARCH_7S__)
return "ARMv7S";
#elif defined(__aarch64__) || defined(_M_ARM64)
return "ARM64";
#elif defined(mips) || defined(__mips__) || defined(__mips)
return "MIPS";
#elif defined(__sh__)
return "SUPERH";
#elif defined(__powerpc) || defined(__powerpc__) || defined(__powerpc64__) || defined(__POWERPC__) || defined(__ppc__) || defined(__PPC__) || defined(_ARCH_PPC)
return "POWERPC";
#elif defined(__PPC64__) || defined(__ppc64__) || defined(_ARCH_PPC64)
return "POWERPC64";
#elif defined(__sparc__) || defined(__sparc)
return "SPARC";
#elif defined(__m68k__)
return "M68K";
#elif defined(__riscv) || defined(__riscv32) || defined(__riscv_) || defined(_riscv)
return "RISCV"
#else
return "UNKNOWN";
#endif
}