On 16-Feb-2000, Simon Marlow <[EMAIL PROTECTED]> wrote:
> 
> The easiest way is to declare mmap as a foreign function using foreign
> import, then build a little wrapper around it.  Unfortunately you won't be
> able to turn the resulting memory into an array (even a ByteArray), since
> these are assumed to live in GHC's heap

I'm curious: why do you make that assumption?

If I write code that defines some big array whose contents are known
at compile time, it would be nice if ghc would allocate that array
at compile time, in read-only memory, rather than allocating it on
the heap at run-time.

-- 
Fergus Henderson <[EMAIL PROTECTED]>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger [EMAIL PROTECTED]        |     -- the last words of T. S. Garp.

Reply via email to