Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

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!
 
Share this answer
 
v2
Comments
ryan20fun 8-Sep-11 8:46am    
Good Advice, but is it easier just to develop and test a x64 build and then do x86 checks ?

because i want to weed out any possible overflows etc from the pointer size differences etc
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!
 
Share this answer
 
Comments
ryan20fun 8-Sep-11 11:37am    
---
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!
---
Windows Will ONLY say that it is not a valid win32 application.

===

what i want is clarification on what ive read about issues porting x86 code to x64.
and from what i can tell i do not need to test the x86 version if i am building and testing the x64 version, because the main reasons of problems arise because of buffer overflows etc.

can anybody confirm this ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900