The Arithmetic and Logic Unit
The ALU is basically your processor's calculator on steroids. It handles every single mathematical operation your computer performs, from simple addition to complex logical comparisons.
Arithmetic operations include the obvious ones like addition and subtraction, but also multiplication and division on both fixed and floating-point numbers. The logical operations (AND, OR, NOT, XOR) might seem abstract, but they're essential for decision-making in programs.
What's clever is that the ALU can also do comparisons (greater than, less than, equal to) and bit shifting operations. After completing any calculation, it stores the result in the Accumulator register.
Pro Tip: The ALU only works with integers by default - floating-point operations often need special handling!