[Haskell-cafe] Announce: ghc-core,
command line pager for reading GHC Core
Don Stewart
dons at galois.com
Thu May 1 21:48:57 EDT 2008
Just a quick announcement, I've uploaded to hackage 'ghc-core' , a
wrapper over ghc for displaying the optimised core and assembly language
ghc produces from your programs.
The code is colourised by hscolour, and displayed in a pager, git-log style.
This will be useful for those who like looking at optimised Haskell.
You can quickly get an idea of what kind of core and assembly your code
is turning into, and the effect of various flags on the result.
Usage:
$ ghc-core Foo.hs
$ ghc-core Foo.hs -optc-O2 -fvia-C
Get it here,
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ghc-core
Screenshot,
http://galois.com/~dons/images/ghc-core.png
Cheers,
Don
More information about the Haskell-Cafe
mailing list