x64 x86构建和测试 [英] x64 x86 Build And Testing

查看:100
本文介绍了x64 x86构建和测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

在x64环境中构建和测试我的应用,然后进行x86测试等是一个好主意吗?

我问我的原因是因为我使用Windows Server 2003 x64并想构建一个x64应用程序,也因为Windows更加倾向于x64,然后是x86 AFAIK.

在此先感谢.

Hi Everybody.

is it a good idea to build and test my app in x64 enviroment and then do the x86 testing etc ?

the reason i ask i because im using Windows Server 2003 x64 and would like to build the app a x64, and also because Windows is going more toward x64 then x86 AFAIK.

Thanks in Advance.

推荐答案

自从我在installshield中工作以来.我可以给你以下建议.

在VS编译器中,要进行构建,我们有32位和64位两种配置.

x64机器版本:

1.使用64位配置构建的任何二进制文件都不能在x86机器上运行.
2.只有使用32位配置构建的二进制文件才能在x86机器上运行.
3. x64位计算机可以运行在x86计算机上以任何配置构建的二进制文件.这是为了支持向后兼容.



x86机器版本:
1.在x86机器上,只能使用32位配置生成二进制文件.它将在x86机器和x64机器上运行.


我建议您使用将在x64机中使用的二进制文件的64位配置在x64机中构建
Wheras使用32位配置构建将在x86机器中使用的二进制文件.

在x64机器上进行构建的最佳方法,因为其向后兼容!!

如果您有疑问,请回复!
Since i have worked in installshield. i can give u the following advice.

In VS compiler, for build we have two configurations, 32 and 64 bit.

x64 machine build:

1.Any binaries built using the 64 bit configurations , cannot be run on a x86 machine.
2.Only binaries that were built using the 32 bit configurations can be run on a x86 machine.
3.Whereas the x64 bit machine can run binaries that were built in any configuration on a x86 machine. this is to support the backward compatibility.



x86 machine build:
1. In a x86 machine, you can build binaries with only 32 bit configurations. which will run on x86 machine as well as on x64 machine.


I would suggest you to the build in x64 machine with 64 bit configurations for the binaries that will be used in x64 machine
Wheras build the binaries that will be used in the x86 machine with 32 bit configurations.

Best way to do the build in x64 machine because of its backward comapatibility!!

If you doubts revert back!


Frnd!
请仔细阅读我给出的要点!
x64计算机上使用 32位配置构建的二进制文件可以在 x86计算机上运行.

除了我提到的情况外,我猜您不能运行该应用程序,因为它的操作系统行为(即,构建配置应与os平台匹配).


另外,您可以尝试在x64机器上以64位配置构建应用程序,并使用此二进制文件在x86机器上运行.
我希望您会收到链接错误!


请让所有人都知道wat hapens!
Frnd!
Please read the points i have given fully!
binaries that were built using the 32 bit configurations on a x64 machine can be run on a x86 machine.

Other than the cases i have mentioned, i guess you cant run the application since its the os behaviour(ie. thet build configurations should match the os platform).


Also, you may please try building the application in 64 bit configuration on x64 machine, and with this binaries please run on the x86 machine.
i expect you will get a linking error!


Please let everyone know wat hapens!


这篇关于x64 x86构建和测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆