GHC library profiling

Hi, I have a little library that depends on the 'ghc' api library. I would like to build my library in profiling mode but this is not possible as the 'ghc' library itself seems to be distributed only in non-profiling mode. Is there any way out? How can I get or build a profiling version of 'ghc'? An unrelated comment: I guess that the right command to update the darcs version of ghc plus all its related libraries is: sh darcs-all --extra pull Would it be useful to add this info to the ghc README file? Currently it only explains how to get ghc and libs the very first time Thanks in advance for your help, titto

Pasqualino 'Titto' Assini wrote:
I have a little library that depends on the 'ghc' api library.
I would like to build my library in profiling mode but this is not possible as the 'ghc' library itself seems to be distributed only in non-profiling mode.
Is there any way out?
How can I get or build a profiling version of 'ghc'?
It's certainly easy enough to get a profiling version of GHC - you just add -prof to GhcStage2HcOpts (for example) in mk/build.mk. To get a profiled version of the GHC library that you can link against, I'm not sure - I don't think I've ever done this. You might try setting 'GhcCompilerWays=p' in mk/build.mk. Almost certainly some tweaks will be necessarily in compiler/Makefile, but I'm not sure how much. Cheers, Simon
participants (2)
-
Pasqualino 'Titto' Assini
-
Simon Marlow