Hugs on Mac with CW6 ? ... and Haskell Graphics Lib?

Alastair Reid reid@cs.utah.edu
Fri, 8 Dec 2000 20:58:22 -0700


Johan wrote:
> the FFI that Alastair has implemented (which will be included in the next 
> release, currently it's available at
> http://www.cs.utah.edu/~reid/tmp/hugs98-ffi-03122000.tgz).

I'd encourage enthusiastic hackers to take it for a spin.

In particular, it uses a little machine code stub to implement
 foreign export dynamic.  At present, we only have a stub for
 the x86 and it has only been tested under Linux.  We need people
 to try it on other x86-based OSs (FreeBSD, NetBSD, Windows, ...)
 and we need people to write stubs for other architectures
 (Sparc, PPC, PA-Risc, ...).
 It's only 3 instructions (on the x86, at least) so it shouldn't
 take long :-)


Alastair

ps The machine code required is in mkThunk which is in
hugs98/src/builtin.c.  The comment preceding the function
describes what the machine code has to do.

pps Sadly, foreign export static is not currently implemented.
  There's some tricky issues involving the typechecker that I
  wasn't able to resolve in the time available.  I'm hoping
  that someone at Hugs-central can fill in the missing parts.