1) Can you specify which pages to swap? For the
Z-machine, one
would
want to swap the game data first, then the
interpreter (if at all).
I'm afraid I don't remember much about its architecture. I don't
think there was a way to "lock" pages into memory.
There was not. The interpreter peered at the game header and
determined at instantiation time what was pure and what was impure.