Jul 20, 2008

Moving To Windows Vista X64 - Moving to Windows Vista x64

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Operating Systems

free web hosting

Moving To Windows Vista X64 - Moving to Windows Vista x64

dedyradix
QUOTE
Introduction
This is an introduction to Windows Vista and the x64 architecture. Writing an article like this is always uneasy, because there's plenty to talk about, but on the other hand it's an article, not a book. I tried to focus on some important aspects, but it goes without saying it that I had to cut out a lot (e.g. the User-Mode Driver Framework, and I'm very sorry for that). This is just a general overview on certain topics, if you want to learn more, then you should really consider turning to specific guides. Also, I won't talk about some obvious matters of the x64 architecture, like the fact that applications can now access a larger memory range etc. This article should be considered a quick upgrade for x86/XP developers.

At the time I write this article I've been using Windows Vista for a month and its official release is scheduled for January 30th (so, in another month). I moved to x64 with XP some months ago and at the time I did I was surprised that I found all the drivers for my devices. But, as we know, Windows Vista requires drivers to be certified, and in order to get the certification companies have to supply a x64 version of the driver. No certification will be released for x86-only drivers. However, at the moment I write, a lot of applications like virtual drive encrypters don't provide drivers for Vista (since x64 versions haven't got a certificate). If you didn't know about the certification, don't worry, I'll talk about it later and you'll see that it's still possible to run drivers without it. I just wanted to say that hardware compatibility is no longer an issue like it was one year ago, and by switching to Windows Vista x64 you're not taking too much chances.

I tried to organize this article in two sections, one about the changes brought us by x64 and then by Vista. I tried as hard as possible to separate these two things, because the x64 technology already existed under Windows XP, so it was important to me that the reader was given a clear distinction between those things that affect only Vista and those ones which affect both topics.

x64 Section
x64 Assembly
In this paragraph I'll try to explain the basics of x64 assembly. I assume the reader is already familiar with x86 assembly, otherwise he won't be able to make heads or tails of this paragraph. Moreover, since this is just a very (but very) brief guide, you'll have to look into the AMD64 documentation for more advanced stuff. Some stuff I won't even mention, you'll see by yourself that some instructions are no longer in use: for instance, that the lea instruction has completely taken place of the mov offset.

What you're going to notice at once is that there are some more registers in the x64 syntax:

8 new general-purpose registers (GPRs).
8 new 128-bit XMM registers.
Of course, all general-purpose registers are 64 bits wide. The old ones we already knew are easy to recognize in their 64-bit form: rax, rbx, rcx, rdx, rsi, rdi, rbp, rsp (and rip if we want to count the instruction pointer). These old registers can still be accessed in their smaller bit ranges, for instance: rax, eax, ax, ah, al. The new registers go from r8 to r15, and can be accessed in their various bit ranges like this: r8 (qword), r8d (dword), r8w (word), r8b (low byte).

And now, the most important things. Calling convention and stack. x64 assembly uses FASTCALLs as calling convention, meaning it uses registers to pass the first 4 parameters (and then the stack). Thus, the stack frame is made of: the stack parameters, the registers parameters, the return address (which I remind you is a qword) and the local variables. The first parameter is the rcx register, the second one rdx, the third r8 and the fourth r9. Saying that the parameters registers are part of the stack frame, makes it also clear that any function that calls another child function has to initialize the stack providing space for these four registers, even if the parameters passed to the child function are less than four. The initialization of the stack pointer is done only in the prologue of a function, it has to be large enough to hold all the arguments passed to child functions and it's always a duty of the caller to clean the stack. Now, the most important thing to understand how the space is provided in the stack frame is that the stack has to be 16-byte aligned. In fact, the return address has to be aligned to 16 bytes. So, the stack space will always be something like 16n + 8, where n depends on the number of parameters. Here's a small figure of a stack frame:

info>>>http://www.codeproject.com/vista/vista_x64.asp#C/C++_Programming

Notice from jlhaslip:
BBcode tags required. Cut and Pasted. Warned

 

 

 


Reply

ghostrider
Interesting. I can't wait until I get a 64-bit processor and I can start utilizing 64-bit technology with my programs I write and the other ones I use. Thanks for sharing.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : moving, windows, vista, x64, moving, windows, vista, x64

  1. What Would You Rather Change In Windows
    minor things that annoy me in Windows (5)
  2. Windows Vista Sp1
    Does it make Vista a viable OS to upgrade to? (0)
    Has anyone actually been satisfied with the release of SP1 for Vista? Does it solve the problems
    that we've all griped about? Overview of Windows Vista SP1 From what I'm reading
    from that document, I'm actually surprised, appalled, and in a way, now wondering if Vista can
    actually be an upgrade. I laughed at: QUOTE Enhances support for high-definition (HD)
    drives by adding new icons and labels that identify HD-DVD and Blu-ray drives as HD drives.
    That's awesome. I never knew the HD drive that I bought was an HD until SP1. /rolleye....
  3. How To Control Other Users’ Privileges (microsoft Windows Steadystate 2.5)
    (1)
    Recently Microsoft has developed a program that makes user control easier. The program is called
    Windows SteadyState 2.5 and it needs a genuine version of windows. System Requirements
    • Supported Operating Systems: Windows Vista Enterprise; Windows Vista Home Premium; Windows
    Vista Ultimate Windows XP Professional, Windows XP Home Edition, Windows XP Tablet PC Edition with
    Windows XP Service Pack 2 (SP2) installed or Service Pack 3 (SP3) installed, Windows Vista Business,
    Windows Vista Home Basic, Windows Vista Starter, or Windows Vista with Servi....
  4. Reasons Why I Hate Moving
    (1)
    okay.. so im soo moving again.. dont even ask me, if im moving outa state, outa the country or
    anything big, cuz im not, im literaly moving a freeway exit away from where we live right now.. i
    know pathetic?? haha... but let me tell you moving.. a freeway exit can change everything..
    /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> specially if its your
    damn senior year in high schooll.. and you are going to have to be a loaner in your new high school
    /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> ehh, i hat....
  5. Windows Xp Sp4
    SP4 (11)
    Windows Will Have One More SP And Taht Is SP4 It Has Bug's Fix And will be more helpful idk if
    it out atm all tho, but it the last one that they are doing for now.. now for Vista SP1 and Sp2 will
    be out i know that SP1 is out now but there is Bugs on it. idk what one atm but i will get you
    posting on that.. now for Visit ppl,, plz note this They are Taking Off visit off the stores this
    year, the reson on this is well there is pobms with the cmd... and get this All tho longhorn fans
    out there did you know that visit has it build in it? to me i like longhorn then ot....
  6. Issue With Windows Vista - Sound Card Acting Wierd [resolved]
    Sound card doesnt recognize my 5.1 (4)
    For some strange reason My sound card doesn't seem play sound on my 5.1 properly. I've a
    dual boot system. on XP its running properly. So I figure this is an issue with Vista only. My
    sound card is recognized as Realtek HD audio. *(My motherboad is XFX 650i Ultra) Now whenever a
    jack on the back-panel is unplugged or plugged in it shows and alert and gives an option window
    under XP where I can select what I've put. It somewhat allows me to configure any pin to be a
    input or output. However I could not find this same option in Vista. I generally don....
  7. Why Hate On Vista?
    What turns you away from it? (33)
    I hear a lot of people talk about how bad Vista is, and how its gltichy and buggy and programs dont
    work... But can somebody please go into detail? Ive been using Vista for almost a year and I havent
    had any problems of the sort. In fact, I prefer it over my xp. Could it be that those who havent
    tried it personally, don't like it? They have just heard horror stories? Or is it that somebody
    had a bad experience and then spreads those stories until it gets to the point where some people
    think vista doesnt even run properly? Vista came built on my laptop, then I swapp....
  8. Converting Audio Files In Vista
    how do you do it? (7)
    Ok, so I have some .wav files that I'd like converted into .mp3. I knew how to do it in XP, but
    I can't find windows audio converter in Vista....does vista even have that, or is it under a new
    name? Also, is it possible to convert video files, like .flv into .avi?....
  9. Windows Seven
    (18)
    Well, a new Windows has been announced. This is going to be the one after Vista. The name Windows
    Seven is only a codename for it as it has not yet been decided upon a name for this new operating
    system. A screenshot of Windows 7 Milestone 1 Build 6519: Source:
    http://en.wikipedia.org/wiki/Windows_7 This windows definitely be better then Windows Vista. What
    are your guys views on this? What features do you want to see added to Windows 7 or removed from
    Vista.....
  10. Windows Vista Sp1 Blocks Antivirus Programs
    (2)
    Well it seems this is the first major problem for Vista SP 1 in the sense for those who have the
    following Secuirty Suites installed on your ocmputer that is running Vista. They block the
    following programs; Zone Alarm Security Suite 7.1, Trend Micro Internet Security 2008, BitDefender
    10, and the 2008 version of the Jiangmin antivirus. As for the reason why these programs don't
    work, Microsoft says "they are incompatible and so they must be block". Well not exactly like that
    but you get the point they also mention that other small programs might now work either b....
  11. I Have Install Windows 2003 Server
    I want multiple user to login my server (4)
    I have install windows 2003 server and some application like iis, share point, etc.my development
    time want remote desktop for few user so I want multiple user to login my server but I have not
    install active directory and I don’t want to install so tell me the best way to resolved the problem....
  12. Increase Internet Bandwidth In Windows Xp
    (9)
    Windows XP reservers 20 percent of the Internet bandwidth for QoS ( Quality of Service). This is
    unnecessary and can be disabled. By disabling this you get a boost in the Bandwith. Follow the
    following steps: * Select Start > Run and enter gpedit.msc to Open the Group Ploicy Editor.
    * In the left-hand column in the window, navigate to Computer Configuration > Administrative
    Templates > Network > QoS Packet Scheduler * In the right column double-click on Limit
    reservable bandwidth and select Enabled . * Change the Bandwidth Limit to 0 and click OK. N....
  13. Win Xp Or Vista
    (39)
    Which do you think is better XP or Vista or Linux. I am constantly switching back and fourth and
    cant stick with either. vist has some pretty cool features but Xp has about twice the amount of
    performance.....
  14. Start Multiple Programs With One Shortcut
    Windows XP (15)
    Welcome to my turoial on how to start multiple programs using one shortcut. You may probably be
    wondering how this is possible. Well this tutorial will use a language from MS-DOS called batch. I
    am not sure whether it is "language", but I do know that it is a way to program for MS-DOS. Batch is
    simply a way to run several MS-DOS commands with just one command. All batch files are run through
    Command Prompt, but they can be accessed with shortcuts also. Here are a few requirements for this
    tutorial. Requirements Windows XP (I tested this on XP, but it should work on m....
  15. Crazy Vista?
    (11)
    idk whats wrong.. i was just browsin the web, just installed latest version of AIM, i signed out of
    aim, loaded GunZ to play, and then the noise wouldn't work.. It didnt work for itunes either,
    but it worked for like youtube.. so i restarted, now everthing is like.. fat.. i mean like slow and
    not working, i clicked system restore, it said it was already open, and now something is flashing on
    my screen idk what.. im scanning for viruses now......
  16. Windows Xp Or Vista?
    (27)
    I'm currently saving up for a laptop for several purposes. One of these is gaming and another is
    graphics. I can't decide whether to go used and get XP or new with Vista. The main games
    I'll be playing are Guild Wars and Halo. I have heard that Vista is horrible and eats up a
    crapload of memory. Well what should I do.....
  17. Reducing Windows Vista Start Menu Programs Response Time.
    How to do it. (4)
    If you have been using Microsoft Windows Vista for quite some time, you would have noticed that
    installing a number of programs/softwares into your computer considerably slows down the response
    time of your start menu program folder, sometimes up to one second or more before the programs
    listed in a particular start menu folder is displayed. Worst of all, if you are trying to launch a
    program from you start menu which is within another start menu prrograms folder. Well, I have found
    a way to bypass this very annoying thing in Windows Vista. I have about 98 start menu en....
  18. Garage Band! Windows Version?
    Anyone know of a windows version of garage band? (7)
    Garage is a awesome program for music editing and making raw little loops and cool music.
    Unfortuantly as most of you know it is only for macs! RAWR! I don't use macs often nor
    do I own one! Anyone know of any freeware(or not) programs for windows? "Hi I am a PC, and I
    am a mac!" Mac: I have garageband! PC: *Knocks Mac out and pours water on HDDs!* PC 1
    Mac 0! lol Thanks....
  19. Dual Booting Vista And Xp With This?
    (5)
    Ok, so I've done some looking around trying to see if it's possible I could dual-boot my pc
    with Windows XP Home and Vista Ultimate Edition (x64). Well, I know it's possible, but I'm
    not understanding many guides I read because many people have mentioned assorted stuff like
    requiring two hard drives (I only have one 250GB one), and other assorted stuff like software
    I'd need to supply certain space to the two separate partitions. I was thinking of making my
    Windows XP be more of the serious partition, and having Vista be the more media-centered one, ....
  20. Ctrl + C Will Not Work
    Windows Xp Pro SP2 (17)
    I recently built a computer, everything seems to be alright with it, except one thing, CTRL + C just
    won't work. I'm running a Windows Windows Xp Pro SP2, and Ctrl + X and Ctrl + V work fine.
    I mean, I could probably just cut and paste anything I want to copy but it seems like such a hassle.
    Has anyone came across this problem before? Or know how to fix it?....
  21. Windows Media Player 11 Officially Release!
    (28)
    Windows Media Player 11 has been officially release today...
    http://www.vnunet.com/vnunet/news/2167601/...player-released I have tried it already and it works
    as well as the beta 2 version... The interface is as nice as ever and its definitely my best media
    player I've ever used!....
  22. How To Change Windows Xp Language ?
    (20)
    my mate bought me a laptop from Paris .... now the problem is i dont know how can i get windows in
    an english version... currently its french. I have tried all the possible ways... its not even
    letting me boot from my own cd. Any help would be great....
  23. Memory Trick To Speedup Windows Xp
    (28)
    Here is one of the not so known method for free-up the RAM to make the Windows run faster. When
    programs run in Windows XP, they frequently use what are called DLLs (Dynamic-Link Libraries). These
    contain shared programming instructions and other files like icons, graphics, sounds, etc. that
    different applications use in order to run. DLLs are stored in RAM whenever the applications load
    them; when you quit a program, XP is supposed to release the DLL from memory. But some DLLs can get
    stuck. Here is the method to mend this up. Step 1: You can force Windows XP to re....
  24. Windows Vista Tranformation Pack
    Make you computer look like Vista (73)
    Ok, some people here have probabely been trying to make their computer look like Windows Vista. I
    have to, i found themes and so on but nothing i like they were all crusty, i searched and searched.
    And found one, The Vista Transformation Pack 4.0 (They will probabely make new versions of it).
    http://www.softpedia.com/get/System/OS-Enh...tion-Pack.shtml It contains everything # Icons #
    Themes # Visual Themes # Bootscreen # Login Screen # Sounds # Transparency # Start Menu Changes
    (WIth Vista Button inseat of start) --Thats all i can think of but there probabely more.....
  25. Run Internet Explorer From Command Prompt
    Windows Tips (21)
    Here's a simple way you can run Internet Explorer from the command line... Create a new text
    file that contains the following line: CODE @start "" /b "C:\Program
    Files\Internet Explorer\iexplore.exe" %* Rename the file e.bat Copy this file
    to your profile folder QUOTE C:\Documents and Settings\your_account_name Now you
    can open a command prompt window and type the following CODE e www.trap17.com This will
    start Internet Explorer and open the URL for www.trap17.com....
  26. Is There An Adium-like Im Client For Windows?
    (17)
    Recently I've been getting sick of connecting to so many accounts on so many different clients.
    It's troublesome to maintain so many accounts/programs. I liked using Trillian for a while but
    it took too much processor memory and it can't connect to Skype or Googletalk (which I
    haven't downloaded, but will do so when I find a suitable Adiumlike program). Does anyone know
    of an IM client which supports all the major IM protocols? That would be MSN, Yahoo, AIM,
    Jabber/Google (well, Skype too but I guess it's optional). I've looked around the plac....
  27. Error Installing Windows Xp -error 7 Ntkrnlmp.exe
    (10)
    i have tried to install windows xp on my pc and i get an error right after it ask at the bottom of
    the screen to press f2 to restore an error pops up saying FILE
    \$win_nt$.~bt\NTKRNLMP.EXE cannot be open error 7 setup cannot complete and has
    to close i have had windows xp on the pc before so i know its compatible but i used a different
    version of windows before ,this tinme im using a new one and i get this error i seem to find no
    solution anywhere about how to resolve this and I was wondering if possible theres something i need
    to do,I am not to sm....
  28. Windows Xp Freezes At Welcome Screen
    (39)
    today i start my pc in windows xp and found that xp freezes at welcome screen. then i try to boot in
    safe mode but the problem persisits then i again try in last good configuration setting but it
    doesn't help so i hav to reinstall my xp plz any body hav solution for this so that i do not hav
    to reinstall my xp for this problem as i get this problem oftenly. thanks....
  29. Microsoft Windows Bill Gates Edition?
    (90)
    i heard that some peaple have microsoft windows bill gates edition and it is used by bill
    gates(creator of microsoft), they said they cracked it from bill gates computer is this true?
    /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> because my freind was going to
    give it to me and i thought it might have viruses or somethin init. it might just be a program that
    some hackers made so microsoft is available to users or it might just be bill gates edition
    microsoft. what is your opinion? /huh.gif' border='0' style='vertical-align:middle' alt='huh.gif....
  30. Sata Hard Drive Not Recognized By Windows
    WD 250gb SATA hard drive not working (11)
    Hi there! I recently re-installed windows on my 250 gb WD SATA hard drive. I had a 50 gb
    windows partition and the rest for files. First thing that happened was my system partition
    wouldn't boot and eventually chkdsk said that the mbr was unrecoverable. A friend recommended
    that i use a seperate parallel hard drive to load windows and then convert the disk to dynamic in
    disk management. I did this, but the computer crashed and now windows won't even load with the
    SATA hard drive connected. The BIOS sees the SATA hdd, but that's as far as I can get. I tri....

    1. Looking for moving, windows, vista, x64, moving, windows, vista, x64

Searching Video's for moving, windows, vista, x64, moving, windows, vista, x64
advertisement



Moving To Windows Vista X64 - Moving to Windows Vista x64



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE