Re: GHC library profiling

2007-04-25 Thread Simon Marlow

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
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


GHC library profiling

2007-04-24 Thread Pasqualino 'Titto' Assini
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

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users