I've decided to publish another preliminary version of my patches for PowerPC. I think that unregistered compilation works now - I haven't tried to bootstrap ghc using the unregistered compiler yet, but I've had good results with some other programs, most notably the cool QBSP sample program from the HOpenGL distribution. Registerized compilation works only partially. Small programs work fine, but as soon as things get a little more complicated there are segfaults and assertion failures. The patches are relative to the ghc version from CVS from 2002.03.04.15.11.33. I didn't want to risk breaking everything again by following the bleeding edge too closely. For now, I recommend including the following lines in mk/build.mk: GhcUnregistered=YES SplitObjs=NO GhcLibWays=
---- Other notes on the patches: * I've removed the old powerpc/rs6000/aix code from ghc-asm.lprl. * I've butchered the nice use of non-standard syntax in rts/ClosureFlags.c, as it is incompatible with Apple's Objective-C compiler. I've solved this by creating a function InitClosureFlags which sets the correct values. * There is some extra initialization code, which resides in Main.c for now. It should be moved somewhere else. Can someone tell me what the proper place is? I didn't want to break any dependencies by moving it to the wrong place (i.e. too late in the initialization process). * I don't think the patches are ready for CVS checkin yet. Simon Marlow wrote: >These things are particularly tedious to debug (or fun and rewarding, >depending on your particular inclinations :-). Tedious. Very tedious. But when I look back afterwards, I think it was fun and rewarding. Probably that's why it is so addictive... MacOS X users: Please report problems & success stories to me - although I can't promise I will be able to solve the problems. Wolfgang
%ghc-macosx-v2.patch
Description: application/applefile
ghc-macosx-v2.patch
Description: Binary data