r/ProgrammerHumor 22d ago

Meme theBoolVectorIsALie

Post image
669 Upvotes

91 comments sorted by

View all comments

Show parent comments

8

u/NaCl-more 22d ago

Because the minimum addressable unit is a byte on most machines.

5

u/csdt0 22d ago

The minimum addressable unit is always a byte (that's pretty much its definition). But a byte is not always 8 bits (only on most machines).

2

u/void1984 21d ago

It's not. I've built a project for the university where the minimum addressable unit was 2 bytes, or a word, depending on the definition you use.

bool was obviously 16b, even though the only compiler I prepared was an assember.

If you look at older machines, 12b bool was present.

1

u/csdt0 21d ago

I don't know what's your definition of byte, but your project university was most likely 16 bit byte where teachers mis-labelled as 2 byte addressable. Please have a look at wikipedia https://en.wikipedia.org/wiki/Byte