Ok. I tried to replace the bytecode generator in YHC with my own which is generating .NET code instead of the usual bytecode. I managed to run my first application for .NET but with some hand written code that replaces a small part of the base package. What I want is to generate the right code for base with the compiler. Any advice about how to do that?
Cheers, Krasimir 2006/1/16, Neil Mitchell <[EMAIL PROTECTED]>: > > I wonder how this bootstrapping version of base was built. When I > > tried to do this manually the compiler died with stack overflow. Is > > it because the compiler is tring to import Prelude while compiling > > Prelude? > > Yes, its something like that. There are also problems with recursive > dependancies I believe - things like IO require the Prelude, and the > Prelude requires IO. If you look at the Unix makefile, that really > does try and build them - it also requires the special flag > --unifyhack or something. I believe it also requires modifying the .hi > file by hand as well. > > The hope is in future that compiling the Prelude will be as simple as > "yhc Prelude.hs" - but this requires quite a few changes before thats > ready. > > Thanks > > Neil > _______________________________________________ Yhc mailing list [email protected] http://haskell.org/mailman/listinfo/yhc
