[Haskell-cafe] Relating generated asm to Core

Don Stewart dons at galois.com
Tue Jun 22 23:45:52 EDT 2010


Rami.Mukhtar:
> Hi,
> 
> Can anyone tell me a way to identify the generated assembly (as found in the
> intermediate files produced by GHC) corresponding to a particular fragment of
> Core code.  

Hey Rami,

I use the ghc-core tool:

    http://hackage.haskell.org/package/ghc-core

Which displays both the core and assembly in a pager, with syntax
highlighting. 

In general, if you see "foo" in the Core, you're looking for "foo_entry"
or similar in the assembly.

-- Don


More information about the Haskell-Cafe mailing list