On Wed, Nov 26, 2008 at 8:13 PM, Adam Leventhal <[EMAIL PROTECTED]> wrote:
> On Nov 23, 2008, at 8:08 AM, Krenz von Leiberman wrote:
>> Hi. I plan to develop a set of programs in haskell, which are to be
>> compiled to /native code/ (not bytecode) with the Glasgow Haskell
>> Compiler. Is it possible to use dtrace on compiled haskell programs?
>
>
> If the Haskell compiler generates symbols then absolutely. If it
> doesn't you might have some luck using the pid provider to trace
> specific addresses, but it's going to be a bit of an uphill battle.


Sorry, I wanted to get in this earlier..

The quick way is to look at the output of 'nm' on a compiled
executable, and see if you like the results.  You can trap external
calls to C functions, but my compiled haskell test didn't show any
similar symbols for my pure haskell function definitions.

-- 
H. Lally Singh
Ph.D. Candidate, Computer Science
Virginia Tech
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to