running directly from RAM on wince?

Noel J. Bergman noel at devtech.com
Fri May 25 20:39:54 UTC 2001


Ned,

> I thought that things stored in the RAM storage were, in fact, compressed.
> Hence if you only have RAM, you can't get execute-in-place from anywhere
but
> ROM. I'd think that the same thing would hold for any files that came from
> storage RAM.

See the eVC help for Memory Mapped files.  As best I understand it, WinCE
pages the file (CreateFileMapping: "This function will not work on a Windows
CE–based platform that does not support Page-In."), and handles everything
transparently.  The memory used for the mapping is not part of the virtual
process space.

If you are concerned about the performance of their mapping, we can write a
simple test program that allocates a multi-megabyte array, then hits the
first byte of each page.  One array can be malloc'ed, the other one mapped.

	--- Noel





More information about the Squeak-dev mailing list