Re: [Haskell-cafe] Relating generated asm to Core

2010-06-23 Thread Ben Lippmeier
Hi Rami, You'll want to first look at the Cmm (C minus minus) code, which is the imperative intermediate language that GHC uses before conversion to assembly. Do something like "ghc -c Whatever.hs -ddump-cmm". The names of the blocks of cmm code should match the ones in core. If not, then you

Re: [Haskell-cafe] Relating generated asm to Core

2010-06-22 Thread Don Stewart
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

[Haskell-cafe] Relating generated asm to Core

2010-06-22 Thread 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. Thanks, Rami The information in this e-mail may be confidential and subject to legal prof