Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

how can i compile programs 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

like image 380
Moon Avatar asked Feb 19 '11 12:02

Moon


2 Answers

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:

enter image description here

like image 151
Darin Dimitrov Avatar answered Sep 20 '22 01:09

Darin Dimitrov


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.

like image 29
Hans Passant Avatar answered Sep 19 '22 01:09

Hans Passant