87flowers ~ $

how should we name objects larger than a byte in size?

computer

In a code base I have been working on I have been calling objects of 128-bits in size 128bits or lane depending on context. I was wondering if there was a good name for such objects. Here we look at historical names as well as a non-serious naming system.

Byte count Current names Historical names
1 byte byte/octet
2 twobyte word (x64) / halfword (aa64) / half (IEEE 754) chawmp (on 32 bit machines; sometimes 18 bits), doublet
4 quadbyte dword (x64) / word (aa64) / single (IEEE 754) gawble (on 32 bit machines, sometimes 48 bits), longword (on 16 bit machines), quadlet, tetra
8 octbyte qword (x64) / double word (aa64) / double (IEEE 754) octlet
16 hexlet oword (x64) / quadruple (IEEE 754) hexlet, paragraph
32 twohexlet yword (x64) / octuple (IEEE 754)
64 quadhexlet zword (x64) / common
there are many architectures that don't use 64 bytes as a cache line. Apple's M-series chips use 128 bytes. GPUs are another example.
size of a cache line
128 octhexlet
256 paglet page (8 bit processors)
512 twopaglet / halfkilobyte
1024 quadpaglet / kilobyte
2048 octpaglet / twokilobyte
4096 page / block common page
there are other common page sizes in modern use, such as 2MiB pages
or block size

I reitierate that this is non-serious.

© 2024. All rights reserved. 87flowers