16 Nov
2005
16 Nov
'05
5:39 p.m.
"Simon Marlow" <simonmar@microsoft.com> writes:
Sure, it shouldn't be too hard. You need to generate a .c file containing the ghc_rts_opts setting, and then compile & link it into the final binary. It's just a matter of plumbing the various bits together in GHC's front end.
If it helps, here is a little C program used by nhc98 to generate much the same type of hook. Regards, Malcolm