On Thu, 27 Jan 2005 09:27:23 -0500, Raymond Toy <[EMAIL PROTECTED]> wrote:
> Will simple-streams mapped-file-simple-stream do what you want? I'm just about to download CMUCL from c-l.net to give simple streams a try because they don't work for me with the Debian version. Even then I'll first have to figure out how to get a mapped-file-simple-stream... :) But, actually, the answer is "no" - if possible I'd like to have random access to the mmap'ed data. > 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). What exactly is this "smashing?" Sorry, I've never heard this term in connection with CMUCL or CL. Thanks, Edi.
