开发者

Compilation on 64-bit system for 32 bit system - compatibility

开发者 https://www.devze.com 2023-02-11 21:26 出处:网络
i have a 64-bit machine with 64-bit OS... how can i compile pro开发者_开发百科grams with Visual Studio 2010 so that they work on 32-bit system

i have a 64-bit machine with 64-bit OS...

how can i compile pro开发者_开发百科grams with Visual Studio 2010 so that they work on 32-bit system

if i install 32-bit OS on my 64-bit machine than i thinks it won't be a problem


If you are talking about .NET applications simply verify that you are targeting x86 in the properties of your project (this is the default setting) or Any CPU:

Compilation on 64-bit system for 32 bit system - compatibility


This is a nice property of just-in-time compiled code. It runs just as well on a 32-bit machine (using the x86 jitter) as a 64-bit machine (x64 jitter). The only time you get in trouble is when you need to use legacy unmanaged code that's only available as 32-bit machine code. Not uncommon with old dbase providers (like Jet) and COM servers. You've got the right kind of machine to detect these problems early.

Emphasizing: you don't have a problem if the target machine is 32-bit, only if it is a 64-bit machine.

0

精彩评论

暂无评论...
验证码 换一张
取 消