Wednesday, August 11, 2010

Determine Word Size of the System

Probably many people do not exactly understand the title, simply said this post is about to determine, whether your computer runs on 32 bit or 64 bit.
This size though is called the word size of the system and therefore is the basic unit of data processing.
On a n bit architecture the system divides all data in words of n bit and operates on these words as a whole. So the greater the word size, the more information can be processes in one calculation step.
But enough theory, in C# one line of code is enough to get this size:

bool Is64Bit = System.Environment.Is64BitOperatingSystem;

No comments:

Post a Comment