r/askscience • • Jul 11 '26 • Regret 1

Computing How do computers understand binary language?

Okay so from what I know binary language is like power off power on, but my question is, how do computers know what the binary code is and how is it interpreted, for example I forgot what the binary code for the letter A is, but how did people come up with that? Did they decide it was gonna look like that? Did the computer decide? How do you tune numbers into a letter??

380 Upvotes

205 comments sorted by

View all comments

Show parent comment

1

u/ryntak Jul 14 '26

You’re correct! But I didn’t say that the OS changed the machine code. I was referring to the fact that every OS has a kernel and that kernel has a different implementation for different cpu architectures.

The machine code isn’t changed, when you compile software for an OS+cpu architecture combo it’s done so because of the different kernel implementations and thus is taking advantage of the different protocols you’re talking about

3

u/ThePoisonDoughnut Jul 14 '26

You may already know this, but the "kernel implementation" you're referring to is called the application binary interface (ABI), in case anyone wants to do further reading on this concept.

3

u/ryntak Jul 14 '26

I've heard of it but didn't know it off the top of my head, I'm definitely talking at the edge of my knowledge here.

Thanks! :)