-ddump-stg code
Stefan O'Rear
stefanor at cox.net
Fri Nov 16 20:59:13 EST 2007
On Fri, Nov 16, 2007 at 05:14:08PM -0300, Guilherme Avelino wrote:
> 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?
Yes, the original paper:
http://citeseer.ist.psu.edu/peytonjones92implementing.html
> Is it possible to do the ghc show type informations?
No, types are erased at the STG stage. If you want you can use the
Simplifier output (-ddump-simpl, or maybe -fext-core if you're so
inclined) - this will give you all the types and 98% of the
optimizations.
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/cvs-ghc/attachments/20071116/f622c61a/attachment.bin
More information about the Cvs-ghc
mailing list