>>>>> "Edi" == Edi Weitz <[EMAIL PROTECTED]> writes:

    Edi> Is it possible to somehow pretend to the rest of CMUCL that the
    Edi> mmap'ed area already is a Lisp string, perhaps by some internal
    Edi> displacement function that I'm not aware of?

Will simple-streams mapped-file-simple-stream do what you want?

Alternatively, you could create an non-simple array and smash the data
pointer of the array header with the address of the mmap'ed area.
You'd also need to precede the mmap'ed area with two words to contain
the simple-string header word and the length word.  Don't know how
easy it is to do that or whether that would work.  GC might also be a
problem with this approach.  

Or maybe use an alien-array and smash it's contents with the mmap'ed
area.  This might work better with GC since alien arrays aren't GCed
(I think).

Ray


Reply via email to