[Haskell-beginners] GHC compiling for different platforms
Magnus Therning
magnus at therning.org
Mon Jun 29 18:05:36 EDT 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/beginners/attachments/20090629/5e3b88aa/signature-0001.bin
More information about the Beginners
mailing list