[Simon] might be worth adding to the docs (title: linking
times on Suns,
Sun's ld vs GNU ld; explanation: see previous mails)?
See
http://www.haskell.org/ghc/docs/latest/html/users_guide/faq.html
specifically the last question.
Cheers,
Simon
I'm having difficulty compiling something with profiling which uses
ffi. It compiles fine without profiling, but not with:
...
Any idea why there would be a difference?
Not sure. Could you send the output with -v?
Cheers,
Simon
___
With 5.04 I get almost the same, look:
COST CENTREMODULE %time %alloc
showData1 Main 87.1 89.2
ncEps Epsilon3.63.4
cutAbove4 Tcsa
Sure. The relevant files look like:
CMU_LM.hs:
...
import CTypes
import IOExts
...
foreign import ccall lm_bridge.h
queryLanguageModel2 c__queryLanguageModel2 :: CUShort - CUShort -
CUShort - IO Double
...
lm_bridge.h:
...
#include pc_libs/pc_general.h
#include
Aha, that's it.
Thanks.
- Hal
--
Hal Daume III
Computer science is no more about computers| [EMAIL PROTECTED]
than astronomy is about telescopes. -Dijkstra | www.isi.edu/~hdaume
On Mon, 27 Jan 2003, Simon Marlow wrote:
Sure. The relevant files look like:
[... snipped ...]