Skip to main content

Posts

Showing posts from July, 2026

From C to Assembly: Blinking an LED the Hard Way

  From C to Assembly: Blinking an LED the Hard Way ~4 hours of digging, one blinking LED, and a much better mental model of what "compiling" actually means. The Inspiration I've been programming since 2017 — variables, control flow, HTTP, web apps, the usual path. But I kept coming back to something Linus Torvalds said: that the compiler writes 100% of the code. I wanted to actually understand what that meant before taking it for granted. So I went looking for the layer beneath the code I usually write: binary → hexadecimal opcodes → assembly → C. I wanted to see the whole stack, not just use the top of it. What I Tried I already knew my way around the Arduino IDE for uploading compiled sketches. While researching, I found out you could write raw hex machine code directly for the Arduino — but the resources I found were too dense to follow. So I stepped back one level, to assembly. Searching further, I found a YouTube channel with an Arduino-assembly series. I copi...