Article On Branching in Instruction Execution and How Processor Handles it
Posted by ishwaats@reddit | programming | View on Reddit | 5 comments
Hey guys, this is an article on what instruction branching is and how a modern processor handles it. It is a good read for those who want to explore complex but intriguing topics in low level programming.
Pls give it some time and leave your suggestions for me.
I hope it will be worth your while :)
Arakela@reddit
That is the terrain hardwhere our code is running. All components in the Where have concrete locations: registers, memory cells, ICUs, and every variety of structural unit exists at fixed coordinates. As you explained, where execute instructions stored at concrete locations in memory, but those instructions are emitted by the Compiler. The Compiler is the mechanism by which our what, are translated into the Where. We designed the How this way specifically to hide the hardware (Where), so our logical What can be somehow translated to run somewhere; and that Somewhere can only ever guess what - we need to move from "How do I code this?" to "How do I grow the where that is this?"
Cold_Meson_06@reddit
"What?" -Joe Biden
Arakela@reddit
在哪里 - 任正非
programming-ModTeam@reddit
No content written mostly by an LLM. If you don't want to write it, we don't want to read it.
ShineDigga@reddit
this kind of stuff always scrambles my brain a bit but also pulls me in
the way processors predict branches feels weirdly similar to sketching ideas before they fully make sense
like your brain jumping ahead and hoping it works out
did you touch on mispredictions and how costly they are or is that a whole other rabbit hole
either way kinda cool seeing what is happening under the surface