ghci unload - profiling

Simon Marlow simonmar@microsoft.com
Thu, 9 May 2002 14:35:57 +0100


> Just a quick addition to my previous question- using the ghci=20
> linker to
> load object code,
> I am currently using the following files from the system libraries:
>=20
> HSstd.o
> HSstd_cbits.o
> HSlang.o
> HSlang_cbits.o
> HSdata.o
> HStext.o
> HSnet.o
> HSconcurrent.o
> HSutil.o
> HSutil_cbits.o
> HSposix.o
> HSposix_cbits.o
>=20
> However, when tring to profile the code I need to load profiling
> versions of these objects, but
> the ghci-linkers loadObject doesn't appear to be able to load the
> libHSstd_p.a (nor the libHSstd.a)
> library... how do I get the ghci-linker to link my profiling objects
> against the profiling versions of the
> system libraries.

You can't do profiling inside GHCi.  Compile the program into a
standalone binary to do profiling.

Cheers,
	Simon