Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 4th, 2006, 8:38 PM   #1
Wilheimer
Newbie
 
Join Date: Apr 2006
Posts: 13
Rep Power: 0 Wilheimer is on a distinguished road
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
Wilheimer is offline   Reply With Quote
Old May 4th, 2006, 10:20 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old May 5th, 2006, 12:10 AM   #3
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,031
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by DaWei
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.
I thought terms like 16-bit, 32-bit, etc referred to the native word size of the CPU, not the bus widths (though on many, the latter are at least equal to the former). For example, the 80486 and later x86 chips, with the embedded FPU, could often do atomic writes larger than 32 bits (ie, a wider data bus), though they were 32-bit processors. Likewise, certain chips like the Intel 80386SX or Motorola 68K had a data bus of only 16 bits (and sometimes a more limited address bus as well), though the chips were otherwise 32-bit.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old May 5th, 2006, 6:29 AM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old May 5th, 2006, 7:55 AM   #5
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,031
Rep Power: 5 lectricpharaoh will become famous soon enough
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.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old May 5th, 2006, 8:32 AM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old May 5th, 2006, 3:02 PM   #7
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 4 Narue is on a distinguished road
>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.
Narue is offline   Reply With Quote
Old May 5th, 2006, 9:04 PM   #8
Wilheimer
Newbie
 
Join Date: Apr 2006
Posts: 13
Rep Power: 0 Wilheimer is on a distinguished road
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!
Wilheimer is offline   Reply With Quote
Old May 6th, 2006, 2:00 AM   #9
Tegelane
Newbie
 
Join Date: May 2006
Location: Estonia
Posts: 8
Rep Power: 0 Tegelane is on a distinguished road
there are also 8 new general purpose registers, named r8 - r15

Quote:
Originally Posted by a page found on google
The additional 64-bit general purpose registers are named r8-r15. There are also 8-bit (rXb), 16-bit (rXw), and 32-bit (rXd) subregisters that map to the least significant 8, 16, or 32 bits of the 64-bit register. The original 8 general purpose registers have also been extended to 64-bits: eax, edx, ecx, ebx, esi, edi, esp, and ebp have new 64-bit versions called rax, rdx, rcx, rbx, rsi, rdi, rsp, and rbp respectively. The old 32-bit registers map to the least significant bits of the new 64-bit registers.
Tegelane is offline   Reply With Quote
Old May 6th, 2006, 9:08 AM   #10
Wilheimer
Newbie
 
Join Date: Apr 2006
Posts: 13
Rep Power: 0 Wilheimer is on a distinguished road
Thanks Tegelane

Here is an interesting article I found on 64 bit Windows programming
64 bit Windows programming
Wilheimer is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:43 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC