CPUregisters
CPU registers are small, fast storage locations inside a processor that hold data, addresses, and control information during instruction execution. They are the quickest storage available to the CPU, operating far faster than caches or main memory. The exact set and organization of registers vary by architecture, and access is controlled by the processor's register file and instruction set.
General-purpose registers hold operands and intermediate results for arithmetic and data movement. Many CPUs also include
Examples: x86-64 provides RAX, RBX, RCX, RDX and R8–R15 as general-purpose registers, with RSP as the stack
In execution, registers hold operands, results, and addresses used by instructions. The compiler maps frequently used
Register usage is subject to calling conventions that specify which registers must be preserved across subroutine