Hi Gabor, The rough commands should just be $ cd src/compiler98 $ yhc Main.hs Then you will have Main.hbc which can be used with yhi as a haskell compiler on any architecture. Unfortunately that won't work at the moment. Yhc is not yet self compiling, primarily because it fails a few important regression tests (http://www-users.cs.york.ac.uk/~ndm/yhc/report.html), directory probably being the most important. Its not far off though, it just needs someone to spend a bit of time implementing a few loose ends. Hopefully sometime soon someone will go through the regression tests again, and see how close we can get to 100% success. Thanks Neil On 30/01/06, Neil Mitchell <ndmitchell@gmail.com> wrote:
(Sent by Neil, since we're having moderation problems...)
Hi all,
I intend to port yhc to a range of architectures that do not have a ghc installed.
On solaris8 I have ghc and I could build yhc without any problems. But now I need a non-native, bytecode version of yhc to be transported to the ghc-less architectures.
How can I compile yhc using yhc to obtain the bytecode version? I basically expect the answer to be
make # tp build yhc using ghc
setenv YHC_BASE_PATH $PWD/inst setenv YHI $YHC_BASE_PATH/bin/yhi cd *somewhere* $YHI *options* *mainfile*
Unfortunately I have not the slightest idea what to write for *somewhere* *options* and *mainfile* :-(
Can somebody help me? Preferably I need the exact commands that work for the shell.
Thanks a lot,
Gabor
PS: once I have the exact build steps I will do my best to contribute the needed stuff to the makefiles for this type of compilation.