64-bit and Visual Studio 2005

We keep receiving questions about Visual Studio 2005's support for 64-bit.  Here is a set of factoids that should help answer the most commonly enquired issues:

(a) There are two flavours of 64-bit - AMD64 or X64, and IA64.  Windows 64-bit installs on both architectures.

(b) There is no 64-bit version of VS. Visual Studio 2005 is available only as a 32-bit app.  However, you CAN install VS on a 64-bit OS and use it to create, launch and debug 64-bit apps. 

(c) VS will install only on X64.  The .Net Framework and the Debugger components install on IA64, allowing you to remotely launch and debug applications on IA64 from a VS IDE installed on another machine.

(d) VS installed on either 32-bit or 64-bit OS can create 32-bit or 64-bit applications, but of course the applications need the corresponding platform to execute.

(e) You need the Professional or Team System versions to build X64 (AMD64) apps. 

(f) You need Team System to build IA64 apps. Pro does not support this. See http://msdn2.microsoft.com/en-us/library/hs24szh9(VS.80).aspx

(g) On a 32-bit OS, the 64-bit compilers will not be installed by default, you will need to go to custom setup and check the option.

How to create 64-bit apps

A managed project is automatically built according to the architecture selected => default C# project created on AMD64 will be AMD64, X86 on X86.  The native one is always 32-bit by default.

To explicitly set a platform:

(1) open the solution explorer, select solution, right click->Configuration Manager.
(2) go to 'Active Solution Platform', click New.
(3) in the 'New Solution Platform' dialog that comes up select the new platform say Itanium. Set 'Copy Settings From' to 'Any CPU' which was the default setting in the 'Active Solution Platform'.
(4) click OK.

You will see that the platform has changed to Itanium in the config manager.  Now when you build the  solution, you will get an Itanium exe.

Follow the same process for X64, and to rebuild 32-bit apps from that solution.

 

http://blogs.msdn.com/b/deeptanshuv/archive/2006/04/11/573795.aspx

MSVC(Microsoft Visual C++)和 MinGW(Minimalist GNU for Windows)是两种不同的编译器工具集,它们用于在 Windows 平台上编译 C++ 代码。MSVC 2019 64-bit 和 MinGW 64-bit 之间有以下区别: 1. 来源:MSVC 是由 Microsoft 开发的专有编译器工具集,而 MinGW 是基于 GNU 工具集的开源编译器套件。 2. 标准库:MSVC 使用 Microsoft 的标准库(如 Visual C++ Runtime Library),而 MinGW 使用 GNU 的标准库(如 GNU C Library)。 3. 兼容性:由于 MSVC 是由 Microsoft 开发的,因此它更好地与 Microsoft 的开发工具和平台集成,例如 Visual Studio IDE。MinGW 则更加接近标准的 GNU 工具链,更适合与其他开源工具和库进行集成。 4. 性能:在某些情况下,MSVC 可能会提供更好的性能和优化,特别是对于某些特定的代码和优化选项。MinGW 也可以提供良好的性能,但可能会因为不同的优化策略而有所差异。 5. 依赖性:由于 MSVC 是专有的编译器工具集,因此在分发应用程序时可能需要包含额外的运行时组件。MinGW 编译的应用程序通常更独立,不需要额外的运行时依赖。 选择使用 MSVC 还是 MinGW 取决于具体的需求和项目要求。如果你需要与 Microsoft 平台和工具集紧密集成,或者需要使用 Microsoft 特定的功能和库,那么 MSVC 可能更适合。如果你更倾向于使用开源工具和库,并且对平台依赖性和运行时依赖性要求较低,那么 MinGW 可能更适合。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值