difference between 32-bit and 64-bit processor?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Poseidon

difference between 32-bit and 64-bit processor?

Post by Poseidon »

Hi guys..

I was just wondering what exactly the difference is between 32-bit processors and 64-bit processors is (ok, they're probably faster..)? And is there difference in machine code per processor?

Thanks.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re:difference between 32-bit and 64-bit processor?

Post by Brendan »

Hi,
Poseidon wrote: Hi guys..

I was just wondering what exactly the difference is between 32-bit processors and 64-bit processors is (ok, they're probably faster..)? And is there difference in machine code per processor?
Basically, all 32 bit software will behave as expected (it's fully backward compatible). There is an additional "64 bit" mode (called "long mode" by AMD) that needs to be used to gain anything from the extra features.

See the Wiki: http://www.osdev.org/osfaq2/index.php/T ... s%20CPU%20...

You can also download full details from both AMD and Intel...


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:difference between 32-bit and 64-bit processor?

Post by Pype.Clicker »

AMD 64bits have "no execute" page bit, they have a new multi-level paging system, they no longer support segments in "long mode", and they have the long-awaited "rip-relative" addressing mode.

And probably much more ;)

They have larger register set too (15 general-purpose 64 bits, some being aliased to "rax, rbx, ...").

...

and of course they allow 64bits addresses :-P

In legacy mode, they're pretty much indistinguishable from their 32 bits counterpart ...
Post Reply