RE: Porting to powerpc-linux
Simon Marlow <fldrsimonmar <at> microsoft.com>
2000-10-10 10:15:49 GMT
> I'm considering taking some effort to port GHC to powerpc
> linux. The task
> seems moderately doable, given that GHC once ran on the powerpc
> I guess as a good first question: should I start with 4.08.1,
> or should I
> venture off with the CVS tree. The driver in CVS seems to have been
> written in Haskell, and it seems to be needed to build the
> runtime. This
> sounds like it would preclude building from .hc files.
I would start from 4.08.1, for exactly that reason. We haven't tackled the
issue of bootstrapping with the Haskell driver. The plan was to use a
handwritten Makefile to build an unregisterised driver from .hc sources
using plain gcc, but this isn't done yet. Furthermore, we're about to merge
the driver with the compiler proper as part of the GHCi reorganisation, so
things are going to be broken for a while...
> I've got my x86 linux box ready to build some unregistered .hc files.
You'll need two build trees. In the first tree, build the compiler as
normal, and the libraries/RTS with -unreg -keep-hc-files-too. You should be
able to use these .hc files to try out some simple programs on the PPC.
In the second tree, bootstrap the compiler using the compiler from the first
tree with -unreg -keep-hc-files-too. Take these .hc files to the PPC and
bootstrap them there.