Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many bits is a WORD and is that constant over different architectures?

Is a machine WORD always the same or does it depend on the machine architecture? And is the meaning of the word WORD context sensitive or generally applicable?

like image 552
prinzdezibel Avatar asked Mar 07 '09 10:03

prinzdezibel


People also ask

How many bits are there in word architecture?

In Intel's PC processor architecture, a word is 16 bits, or two contiguous eight-bit bytes. Some computer processor architectures support a half word, which is half the bit length of a word, and a double word (doubleword), which is two contiguous words.

How many bits is a word?

Fundamental Data Types A byte is eight bits, a word is 2 bytes (16 bits), a doubleword is 4 bytes (32 bits), and a quadword is 8 bytes (64 bits).

Is a word always 32 bits?

Word sizes thereafter are naturally multiples of eight bits, with 16, 32, and 64 bits being commonly used.

Why is 16 bits called a word?

A combination of 16 bits is called a word. Word "size" refers to the amount of data a CPU's internal data registers can hold and process at one time. Computers embedded in appliances and consumer products have word sizes of 8, 16, or 32 bits.


1 Answers

The machine word size depends on the architecture, but also how the operating system is running the application.

In Windows x64 for example an application can be run either as a 64 bit application (having a 64 bit mahine word), or as a 32 bit application (having a 32 bit machine word). So the size of a machine word can differ even on the same machine.

The term WORD has different meaning depending on how it's used. It can either mean a machine word, or a type with a specific size. In x86 assembly language WORD, DOUBLEWORD (DWORD) and QUADWORD (QWORD) are used for 2, 4 and 8 byte sizes, regardless of the machine word size.

like image 187
Guffa Avatar answered Sep 20 '22 09:09

Guffa