![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2006
Posts: 13
Rep Power: 0
![]() |
64 bit architecture
I am a long ways away from doing any 64-bit programming as I am just learning 32-bit, but I was curious about the new 64-bit processors. Such as what are the registers called and are they broken down into smaller registers like the 32-bit general purpose are ie.(EAX,AX,AH,AL)? Also what size of address space is available? 2^64? If so thats humongous.
Thanks |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
The 64-bit thangy is the width of the data bus. The wider the bus, the more data you can transfer with a clock edge. That makes for a performance increase. While machines may have an address bus the same width, it ain't necessarily so. The width of the address bus, how many of them are brought outside the device, and how many are wired up will determine the general memory space. Some systems will set aside part of the space available for memory-mapped I/O, also.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 | |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 929
Rep Power: 4
![]() |
Quote:
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp |
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
To me and a majority of my peers, it refers to the width of the internal data bus. This may be the same thing as your definition of 'native word size'. This is not the same thing as the number of pins brought out, witness the 32008, etc.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 929
Rep Power: 4
![]() |
By 'internal data bus', do you mean the number of bits which can be manipulated internally in a single operation, such as copying from one register to another? If so, that's what I meant by 'native word size', though I tend to think of it as the width of the 'general registers' of the CPU in question, particularly in regards to addressing, logical, and integer arithmetic operations, and usually excluding floating-point operations.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp |
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I tend to look at it like a schematic of the appropriate devices. Nothing fuzzy about it that way. But that's just me and my background.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#7 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 3
![]() |
>Such as what are the registers called and are they broken down into smaller
>registers like the 32-bit general purpose are ie.(EAX,AX,AH,AL)? The 64-bit general purpose registers behave exactly the same, they're just extended by another dword and R is used instead of E: RAX, RBX, RCX, RDX, RDI, RSI, RBP, and RSP.
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
|
|
#8 |
|
Newbie
Join Date: Apr 2006
Posts: 13
Rep Power: 0
![]() |
So there are still eight general purpose registers that would use quadword data and a 64-bit data bus. I am assuming to gain much of a performance increase, a program would have to be targeted at a 64-bit OS.
Thanks to all for the info! |
|
|
|
|
|
#9 | |
|
Newbie
Join Date: May 2006
Location: Estonia
Posts: 5
Rep Power: 0
![]() |
there are also 8 new general purpose registers, named r8 - r15
Quote:
|
|
|
|
|
|
|
#10 |
|
Newbie
Join Date: Apr 2006
Posts: 13
Rep Power: 0
![]() |
Thanks Tegelane
Here is an interesting article I found on 64 bit Windows programming 64 bit Windows programming |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|