32-bit vs 64-bit
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: 32-bit vs 64-bit

  1. #1
    Join Date
    Aug 2002
    Posts
    578

    32-bit vs 64-bit

    Hi, ALL,
    I have MSVS 2010 Pro installed on my machine.
    I got it from MS official site thru my college.

    The Help->About.. menu says:

    Microsoft Visual Studio 2010 Version 10.0.40219.1 SP1Rel.

    It does not say whether its 32- or 64-bit compiler but I suspect it's 32-bit.
    Now, as far as I understand in order to produce 64-bit executable, I need 64-bit support from the compiler and 64-bit SDK. Am I right?
    How do I get 64-bit support in my MSVC?

    I am working with C++.

    Thank you.

  2. #2
    Join Date
    Apr 1999
    Posts
    27,424

    Re: 32-bit vs 64-bit

    Quote Originally Posted by OneEyeMan View Post
    Now, as far as I understand in order to produce 64-bit executable, I need 64-bit support from the compiler and 64-bit SDK. Am I right?
    How do I get 64-bit support in my MSVC?
    Go to the project configuration and look for 64-bit options.

    Also, you don't need a 64-bit compiler to produce 64-bit code. All you're doing when you produce code is to create a binary file that follows a certain format (executable).

    Regards,

    Paul McKenzie

  3. #3
    Join Date
    Aug 2002
    Posts
    578

    Re: 32-bit vs 64-bit

    Paul,
    So no matter what I will be able to produce 64-bit binary with my version of MSVS by just changing the appropriate option in the solution/project?

    Thank you.

  4. #4
    Join Date
    Apr 1999
    Posts
    27,424

    Re: 32-bit vs 64-bit

    Quote Originally Posted by OneEyeMan View Post
    Paul,
    So no matter what I will be able to produce 64-bit binary with my version of MSVS by just changing the appropriate option in the solution/project?

    Thank you.
    Yes.

    The only way you couldn't generate 64-bit code is if, well, the compiler didn't produce 64-bit code. The point being that the compiler program can be any "bitness", it isn't the "bitness" of the compiler that matters. What matters is if the compiler and linker can piece together an executable that has a 64-bit compatible format. Heck, you could conceivably create a 64-bit executable using a 16-bit compiler.

    Regards,

    Paul McKenzie

  5. #5
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    3,827

    Re: 32-bit vs 64-bit

    You need to have the full VS (express doesn't support Win64)... if using express, you may get it to work by installing the 64bit compiler from the Windows SDK.

  6. #6
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,957

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center