CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Simple Question

  1. #1
    Join Date
    Feb 2010
    Posts
    2

    Simple Question

    Hi all,
    I've got some coding experience with C++ building Win32 apps, but I'd like to move into x64. Are there any differences in the code itself or am I right in thinking it's just a question of using a 64 bit compiler? If so, can anyone recommend a good x64 compiler (for windows)?

    Thanks

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: Simple Question

    The new Visual Studio versions can build x64 if you set them up for it.

    On Windows, there are few differences. sizeof(void*) is now 8, and long long is a native type. In general, however, you need to make sure not to make as many assumptions as you used to about the size of primitive types; they vary on different 64-bit platforms. "Long" has size 4 on x64 Windows, but size 8 on 64-bit linux, for instance.

  3. #3
    Join Date
    Feb 2010
    Posts
    2

    Re: Simple Question

    Okay, that's good to know.

    Thanks for the quick response

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured