Sorry guys, I might just write a small post on this.
This topic looks so simplified from the outside that most people completely think about it the wrong way.
But the truth is, itās insanely deep once you actually start looking at how it works under the hood with assembly code and opcodes.
Iām currently diving into it line by line, registers, memory, how the CPU actually moves data, and computes and itās mind-blowing.
Itās the kind of thing that looks ābasicā in C, but when you open the (.S) file and see what the compiler really generates, it hits different.
Iāll write a detailed blog about this soon with real examples, actual assembly snippets, and full explanations of whatās really happening behind that one āsimpleā C statement.
This is fucking deep, and honestly, it changes how you see code forever.
Thanks for your time.
Remember this line always and put it into your brain:
This is the most fundamental truth about how a CPU actually executes instructions.
Every single instruction your CPU executes ultimately does two things:
-Move data between registers and memory,
-then computation/processing happens using data inside registers.
All actual computation/processing happens inside the CPU, in the ALU (Arithmetic Logic Unit), using registers.
After that, results are written back to registers, and finally to memory if needed.
Thatās the entire essence of how a computer āthinks", literally, it is.
Everything else like C, Rust, Python, javascript, frameworks or anything, is just abstraction on top of this.