Cross compilers
Simon Marlow
simonmar@microsoft.com
Mon, 4 Mar 2002 12:02:40 -0000
> "Simon Marlow" <simonmar@microsoft.com> writes:
>=20
> > 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.
>=20
> 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