-ddump-stg code
Guilherme Avelino
gavelino at gmail.com
Mon Nov 19 14:36:08 EST 2007
I have two questions about the code generated by -fext-core:
Is there one place where I can obtain the grammar for it?
How is represented the free-vars?
Thanks
2007/11/19, Simon Peyton-Jones <simonpj at microsoft.com>:
> >
> > I suspect you probably want –ddump-simpl, which prints the "Core" form.
> > This is fully typed, unlike STG code which is only partially typed.
> >
> >
> >
> > If you compile with –fext-core you'll get a printed form which is
> > supposed to be reasonably easy to parse. Tim Chevalier and Aaron Tomb are
> > working on this.
> >
> >
> >
> > You may also find it easier to use the GHC API: you should be able to
> > import module GHC, and use its API to compile your module and return the
> > (typed) Core syntax tree to your back end.
> >
> >
> >
> > Simon
> >
> >
> >
> > *From:* cvs-ghc-bounces at haskell.org [mailto:cvs-ghc-bounces at haskell.org]
> > *On Behalf Of *Guilherme Avelino
> > *Sent:* 16 November 2007 20:14
> > *To:* cvs-ghc at haskell.org
> > *Subject:* -ddump-stg code
> >
> >
> >
> > Hi,
> >
> > I want to use the stg code generated by the ghc with a frontend for my
> > compiler. I´m using the flags -ddump-stg and -dppr-debug to obtain the STG
> > informations. However there are some things that I din´t understand. Are
> > there any document where I can find informations about the stg generated? Is
> > it possible to do the ghc show type informations?
> >
> > Thanks.
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/cvs-ghc/attachments/20071119/2aa14937/attachment.htm
More information about the Cvs-ghc
mailing list