Akash Sagar :
Can any one tell me excatly in simple language that what ia the diffrence between 32bit and 64bit?
I know if you have 4gb ram then 64bit if lower then 4gb r then 32bit ....but why we should go for 64bit if our work can be done in 32bit? Why 4gb ram ?
Hi,
There are several major advantages to using 64 bit operating systems when compared to 32 bit operating systems. I'm going to focus exclusively on Intel x86 microprocessors for this post. The same differences will not necessarily be applicable to other microarchitectures such as ARMv7 vs ARMv8
First, x86 microprocessors operating in the 64-bit mode of operating (called long mode) has access to twice as many addressable CPU registers as when the same microprocessor is running in the 32-bit mode of operation (called protected mode); 16 registers on each stack rather than 8. This means that software compilers can be much more efficient when it comes to managing memory as data has to be swapped to and from memory less often. This increases the overall efficiency and speed of many programs.
Second, long mode extends the size of the general purpose CPU registers from 32-bits to 64-bits in size. This enables native 64-bit integer arithmetic which is much faster than emulated 64-bit integer arithmetic which is accomplished by decomposing a single 64-bit operation into multiple 32-bit operations. So not only are the CPU registers twice as numerous, but the general purpose registers are twice as wide. The advantage of this is increased speed for applications that use 64-bit integer arithmetic.
Third, long mode supports 64-bit virtual address spaces. x86 microprocessors have supported 64-bit physical address spaces since 1995 (through Physical Address Extension) which allows a microprocessor to address more than 4GiB of physical memory, usually 64GiB or 128GiB. Windows has supported PAE since Windows 2000 Server which supported up to 8GiB of physical memory. However, a single 32-bit process is still limited to a 32-bit virtual address space even when that 32-bit virtual address space is mapped to a much larger 64-bit address space. This is handy for high end servers that run many applications and services at once, but less useful for consumer machines which focus on only a few applications at a time.
Fourth, long mode is naturally more powerful. It standardizes certain microprocessor instruction set extensions and eliminates older ones which allows compilers to automatically optimize the compiled code to a greater degree while maintaining confidence that the code will run on a great number of devices.
Fifth, long mode is naturally more flexible. Many operations that were previously handled in hardware (such as task switching) are now forcibly done in software. This allows the operating system to have decide what to support and what not to.
Sixth, long mode is naturally more secure. I won't go deeply into this because it's very difficult to understand the advantage but many security holes and hardware level exploits were closed in long mode.