Hi all,
I'm trying to profile a mixed language program, in which Haskell is NOT
the top layer and does not contain the `main' function. (C is/does.)
Is this effort doomed to fail?
I'm getting a segmentation fault, as soon as the first Haskell function
is called, despite having included `-K100M'
On 16 August 2011 15:56, David Banas dba...@banasfamily.net wrote:
Any thoughts?
Just a hunch, did you specify the correct calling convention for amiInit?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
If you want to call a Haskell function from C you should do a foreign
export of the function, that will create a stub function with C
calling convention that you can call.
Regards,
Niklas
2011/8/16 David Banas dba...@banasfamily.net:
Hi all,
I'm trying to profile a mixed language program, in
Reading a bit closer I assume you have already done that. Sorry for that.
Regards,
Niklas
2011/8/16 Niklas Larsson metanik...@gmail.com:
If you want to call a Haskell function from C you should do a foreign
export of the function, that will create a stub function with C
calling convention
On Tue, Aug 16, 2011 at 12:42 PM, Niklas Larsson metanik...@gmail.com wrote:
If you want to call a Haskell function from C you should do a foreign
export of the function, that will create a stub function with C
calling convention that you can call.
I put an example of how to do this on