150+ Most Common Linux Commands With Examples
A rundown of the 150+ Linux commands you use most, from files and processes to networking, each with a copy-ready example.
Read article →RISC and CISC are two instruction set architecture philosophies. Learn how they differ, see real instruction examples, and why the line between them is now blurry.
Every program you run — from a browser to a game — is ultimately executed as a series of instructions by the CPU. But not all CPUs understand the same instructions. There are two major instruction set architecture (ISA) philosophies that shape the processor world: RISC (Reduced Instruction Set Computer) and CISC (Complex Instruction Set Computer). This article explains both in detail, with real instruction examples.
The instruction set is the "language" a CPU understands — the contract between software and hardware. When you write high-level code like C or Python, the compiler translates it into machine instructions specific to the target CPU's ISA.
Example assembly instructions (the language closest to the instruction set):
MOV AX, 5 ; load the number 5 into register AX
ADD AX, 3 ; add 3 to the contents of AX
Each CPU only executes instructions from its own ISA. A program compiled for x86 won't run directly on ARM, and vice versa — because the instruction sets differ.
CISC was born in an era when memory was very expensive (the 1970s). The idea: make instructions complex so programs are shorter and use less memory. The most famous example is Intel's x86 (introduced with the 8086 in 1978), which powers almost every PC and server to this day.
CISC characteristics:
An example of CISC power: copying 100 bytes of memory on x86 can be done with a single instruction:
; x86: copy 100 bytes from src to dst in one instruction
MOV CX, 100 ; count = 100 bytes
REP MOVSB ; repeat MOVSB (copy 1 byte) CX times
The REP MOVSB instruction copies a whole memory block with addressing, a counting, and looping — all in one line. This saves program memory, but the CPU works hard to execute it.
RISC came out of research at UC Berkeley and Stanford in the early 1980s (David Patterson & John Hennessy). The philosophy is flipped: instructions are made simple and uniform, so the CPU can execute them fast — ideally one cycle per instruction. The heavy lifting is shifted to the compiler. Famous examples: ARM, MIPS, and RISC-V.
RISC characteristics:
The same task (copy 100 bytes) on ARM must be broken into a loop:
; ARM: copy 100 bytes from src to dst
MOV R2, #100 ; count = 100 bytes
loop: LDRB R0, [R1], #1 ; load 1 byte from memory into R0, then advance R1
STRB R0, [R3], #1 ; store 1 byte from R0 to memory, then advance R3
SUBS R2, R2, #1 ; decrement count, set flags
BNE loop ; repeat if not zero
RISC code is longer, but every instruction is simple and fast. The compiler manages the flow, not the CPU.
Say we want to add 4 numbers stored in memory. The CISC approach lets instructions work directly on memory:
; CISC (x86 style): add 4 numbers straight from memory
MOV AX, [a] ; AX = a
ADD AX, [b] ; AX = AX + b (reads memory directly!)
ADD AX, [c]
ADD AX, [d]
MOV [result], AX
The RISC version must load all data into registers first:
; RISC (ARM style): add 4 numbers via registers
LDR R0, [a] ; load a into R0
LDR R1, [b]
LDR R2, [c]
LDR R3, [d]
ADD R0, R0, R1 ; R0 = a + b
ADD R0, R0, R2 ; R0 = R0 + c
ADD R0, R0, R3 ; R0 = R0 + d
STR R0, [result] ; store to memory
Note: the CISC version is shorter (5 instructions vs 8), but the RISC version pipelines more easily because every instruction is uniform and fast.
| Aspect | CISC | RISC |
|---|---|---|
| Instruction length | Variable (1–15 bytes) | Fixed (e.g. 32 bits) |
| Memory access | Instructions can read/write memory directly | LOAD/STORE only |
| Number of registers | Few (classic) | Many |
| Execution | Multi-cycle | Mostly single-cycle |
| Control unit | Microcode | Hardwired |
| Compiler role | Moderate | Heavy (manages flow & registers) |
CISC — x86 (Intel & AMD): has dominated PCs, laptops, and servers for 40+ years. Long backward compatibility is both x86's strength and its burden.
RISC — ARM: dominates smartphones and tablets thanks to energy efficiency. Since 2020, Apple uses ARM chips (M1–M4) in Macs, proving RISC can compete at peak performance while saving battery.
RISC — RISC-V: a free, open ISA on the rise — used in microcontrollers, AI accelerators, and research. With no royalties, anyone can build their own RISC-V chip.
Others: MIPS (routers & old game consoles), POWER (IBM, high-end servers), SPARC (Sun/Oracle servers).
Interestingly, the RISC vs CISC difference is not as clear today as it once was:
Note: the terms RISC and CISC are now more useful for understanding design history and philosophy, not as an absolute performance judgment.
RISC and CISC are two instruction set philosophies: CISC favors complex instructions that save program memory, while RISC favors simple instructions that execute quickly. x86 (CISC) dominates PCs and servers, while ARM and RISC-V (RISC) dominate mobile devices and are increasingly moving into laptops and servers. Most importantly: the line between them is now blurry — choose a processor based on workload and ecosystem, not the label.
A rundown of the 150+ Linux commands you use most, from files and processes to networking, each with a copy-ready example.
Read article →mdwn turns dozens of Linux commands into one tidy terminal menu. Here is what every menu does, plus an interactive browser demo you can try safely.
Read article →Inside Alpine Linux: why this 5 MB distro is the top choice for Docker images, what makes it different, and whether it can be a daily driver.
Read article →