Home > Back-end >  On different operating systems, a word is equal to how many bytes?
On different operating systems, a word is equal to how many bytes?

Time:09-16

On different operating systems, a word is equal to how many bytes? Can say the precise point?

CodePudding user response:

Has nothing to do with the operating system, related to encoding, ANSI code, for example, an English accounts for a byte, a man of two bytes,
If it is a Unicode encoding, an English and a man are two bytes, if UTF8 encoding, an English one byte, a Chinese account for three bytes, if Unicode16 coding, some rare man of four bytes

CodePudding user response:

To clear the original poster said what words mean, word length? Character width? ,,,

CodePudding user response:

Aniseed several writing???

CodePudding user response:

Word, English should call character
Byte bytes, English
Specific see Windows core programming, fourth edition, I see the first article is about character, best practices,

CodePudding user response:

The WORD WORD

CodePudding user response:

reference 4 floor smwhotjay response: ,
word English should call character
Byte bytes, English
Specific see Windows core programming, fourth edition, I see the first article is about character, best practices,

That WORD?

CodePudding user response:

refer to the second floor early play big play nuclear response:
to clear the original poster said what words mean, word length? Character width? ,,,

The word word

CodePudding user response:

Words, English should call character, had not heard of the ~ ~ ~
Windows core programming, this book also didn't heard of ~ ~ ~

CodePudding user response:

refer to 7th floor J6wuli response:
Quote: refer to the second floor early play big play nuclear war reply:
to clear the original poster said what words mean, word length? Character width? ,,,

The word word


It refers to the storage unit, different system of word definition, DOS/Windows from 16 developed on hardware, so:
Byte=8 - bit
The word=16 - bit
Dword=32 - bit
Qword=64 - bit
Tbyte=80 - bit
Dqword/xmmword=128 - bit
Ymmword=256 - bit
Zmmword=512 - bit

Other systems may have different definitions, and even early computers, byte is not fixed 8, 6000, the CDC byte is six, word is 60

CodePudding user response:

OK, thank you for your answer

CodePudding user response:

early play big kind of nuclear war, 9/f, reference response:
Quote: refer to 7th floor J6wuli response:

Quote: refer to the second floor play big shoot early nuclear response:
to clear the original poster said what words mean, word length? Character width? ,,,

The word word


It refers to the storage unit, different system of word definition, DOS/Windows from 16 developed on hardware, so:
Byte=8 - bit
The word=16 - bit
Dword=32 - bit
Qword=64 - bit
Tbyte=80 - bit
Dqword/xmmword=128 - bit
Ymmword=256 - bit
Zmmword=512 - bit

Other systems may have different definitions, and even early computers, byte is not fixed 8, 6000, the CDC byte is six, word is 60

If it refers to the word length and width of character?

CodePudding user response:

Word length generally refers to the width of the processor general-purpose registers, namely the CPU can be processed by the conventional integer arithmetic a digits, floating point, multimedia instruction can handle more digits at a time, but do not belong to the normal operation, so not as a judgment (such as built-in floating-point unit can handle 64, 486 operation, but still belongs to the 32-bit processor 486),
Character width and the compiler, operating system, some compilers char is 1 byte, such as c, c + +, other compilers may be 2 bytes, such as Java, would usually 2 bytes in the Windows version of the compiler, and in the Linux/Unix version of the compiler is 4 bytes,

CodePudding user response:

Has nothing to do with the operating system, one WORD (WORD) is 16 bit, 2 bytes,
  • Related