
Bernhard Lehnert wrote:
Hi folks!
When I compile a program under windows - will the .exe run under any windows? Do I have to distribute only the .exe or more files?
In my experience, yes. But I have really only taken .exe's compiled on XP to run on Vista and w2k3.
When I compile a program under a 64bit-Linux on an AMD-CPU, will the executable run under 32bit and/or Intel-CPU as well? Are there any, say, compiler flags, to improve portability?
I don't think you'll have any success in running a 64-bit executable on a 32 bit system. However, I think most 64-bit systems are able to run 32-bit executables. I suspect GHC, with its static linking is a rather easier platform than C/C++ with its typically large set of shared objects. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe