Is it possible to develop in a 64-bit environment but compile the code compatible for 32-bit computers? (any programming language, or specifically Java and Python)
Is it possible to develop in a 64-bit environment but compile the code compatible for 32-bit computers? (any programming language, or specifically Java and Python)
Since many 32 bit programs can run on 64 bit
you could develop it using 32 bit IDE.
But haven't tried doing that.
Depends upon what you are developing, if you use some functions the strictly applies to this architectures such x86/x64 or IA64 or Any CPU’s, then you have to compiled it under its platform. The rest if you want to run in both 32bit and 64bit you should avoid using large value in memory allocations such as size_t mem_size = 1000000000 (or more)… allocating large block of memory size that only 64bit machine can support then there’s no chance to compile it under 32bit…unless you do so extra codes like…
If __win32__ (initialize)
if __win64__ (initialize)
then compile it....
Mostly 16 bit application can run at 32bit machines, then it is possible either to run any 32bit under 64bit machines… it just a matter of memory allocation I guess.
And talking about Python, yes, it’s possible… by default python uses 32bit, you can check on their CVS and see it with your own. Other thing is that windows XP has its own "compatibility mode", creating 32-bit virtual address spaces within the native 64-bit address space. Maybe you will have only some difficulties during debugging, but there are some tools anyway and it’s free.
Since both Java and Python are interpreted language. You must install the 64-bit runtime environment for both languages so that you maximize the performance.
@ares623
When using Visual Studio 2008, the default platform is "Any CPU", meaning it will run on both 32-bit and 64-bit machines (isn't that easy? not!). But if you need to set your app to exclusively run on either CPU platform you can also do this by just a few clicks. No additional install necessary
The link below will provide some tips when developing on 64-bit platform
Visual Studio .NET Platform Target Explained : Visual Studio Hacks
Similar Threads |
|