
4 Mar
2002
4 Mar
'02
7:02 a.m.
"Simon Marlow"
writes: Cross compilation in GHC is usually done by taking .hc files generated on a machine with a working GHC and compiling them on the target machine using only gcc. This is how we bootstrap GHC on new machines.
So then it reduces to getting a GCC cross compiler? (Which shouldn't be insurmountable)
Yes, you could do it this way. It may be less hassle to just take the .hc files to the target machine and compile them there, however. Setting up a real cross-compiling environment can be tricky - eg. making sure you're getting the right include files and so on. Cheers, Simon