[Yhc] Compiling Prelude.hs

Krasimir Angelov kr.angelov at gmail.com
Wed Jan 18 06:35:00 EST 2006


Ok. Then I will follow the same way used in the bytecode backend.

2006/1/18, Thomas Shackell <shackell at cs.york.ac.uk>:
> Hi Krasimir,
>
> Great work with the .NET backend!
>
> It wouldn't be easy. Knowing whether a function internal to this module
> is primitive is relatively easy. However knowing whether a function in
> another module is primitive is harder because the program gets it's
> information about external functions from the .hi file and the .hi file
> doesn't store whether a function was primitive or not.
>
> It would be possible to add it, but messing about with the hi files
> isn't fun (trust me ;-)).
>
> Hope that helps
>
> Tom
>
> Krasimir Angelov wrote:
> > Cool! Now I am able to compile the entire base package to IL code but
> > there is still one problem. The byte code backend is using a special
> > instruction for all primitives. I would like to try an another
> > approach that will allow to call the primitives directly. For this
> > purpose I need to now whether a given Id is an Id of a primitive. Is
> > it currently possible? It is enough if there was any flag in the Info
> > datatype. Any suggestions?
> >
> > Krasimir
> >
> > 2006/1/17, Neil Mitchell <ndmitchell at gmail.com>:
> >
> >>>code. Is it possible to remove the duplicated instances as well?
> >>
> >>Yep, I removed them already - they were certainly a bug. It should be
> >>in the repo already.
> >>
> >>The compiler detects duplicate class declarations (good), but
> >>supresses rename errors with the -redefine flag (bad, fixed now), and
> >>doesn't detect duplicate instance declarations (bad, unfixed).
> >>
> >>Thanks
> >>
> >>Neil
> >>
> >
> > _______________________________________________
> > Yhc mailing list
> > Yhc at haskell.org
> > http://haskell.org/mailman/listinfo/yhc
>
>


More information about the Yhc mailing list