Cross-Compiling with GHC?

Hi there - GHC noob here, trying to compile a small app for a Linux/PPC target from a Linux/x86 host. I take it this must be doable, since it is possible to build GHC for new platforms and GHC itself is written in Haskell. I'm just trying to find out if anyone has formulated a guide to this already, before I jump in (and I did try Google without much luck). I'm afraid building GHC for the target is not an option. My first thought to try is to build an unregisterised GHC on x86 from scratch and use it to compile my app to C code, which I can then cross-compile to PPC. Something tells me however that this C code still may have some x86 specific stuff in it. Regards, Rich

On 10/18/05, Rich Fought
GHC noob here, trying to compile a small app for a Linux/PPC target from a Linux/x86 host.
If all else fails, try running PPC-Linux on Qemu on your Linux/x86 host. Who knows, this might even be the best solution? (I didn't try it though) Best regards Tomasz
participants (2)
-
Rich Fought
-
Tomasz Zielonka